Results 1 to 2 of 2
Feb 8, 2012, 14:50 #1
Is there a shorter way to do this?
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);
Feb 9, 2012, 23:07 #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