advanced code snippet search
iloveitaly on 07/09/10
array keys implode selective chose
07/09/10 06:10am
1 person have marked this snippet as a favorite
FedericoBiccheddu
function implode_with_keys($sep, $array, $selection) { $temp = array(); foreach($selection as $key) { if(isset($array[$key])) $temp[] = $array[$key]; } return implode($sep, $temp); }
Report this snippet Tweet
Comment:
You need to login to post a comment.