zaggs — 2012-02-08T15:50:17-05:00 — #1
I was wondering if there was a quicker way to do what I have done below (maybe using array_map?). Any help is appreciated.
$skill_array = array();
foreach($array['skills']['skill'] as $key=>$value)
$skill_array = $array['skills']['skill'][$key]['skill']['name'];
$_SESSION['linkedin_data']['skills'] = implode(', ',$skill_array);
wonshikee — 2012-02-10T00:07:40-05:00 — #2
I see nothing wrong with it.
Only thing I would of done differently is
$skill_array = $value['skill']['name'];
But it's just cuz that uber long array spams "skill" too many times for my taste