How to implode foreach

felixthekat

New Member
How to implode \[code\]foreach()\[/code\] with comma?\[code\]foreach($names as $name) { //do something echo '<a href="' . $url . '" title="' . $title . '">' . $name .'</a>';}\[/code\]Want to add comma after each link, except the last one.
 
Back
Top