iloveitaly on 08/31/09
Last Edited at 08/31/09 10:02pm
function implode_on_key($array, $key, $sep, $prefix = '') { $string = ''; if(empty($array)) return ''; foreach($array as $element) { $string .= $prefix.$element[$key].$sep; } return substr($string, 0, -strlen($sep));}
Report this snippet Tweet
Comment:
You need to login to post a comment.