Let\'s say I have this:
$array = array(\"john\" => \"doe\", \"foe\" => \"bar\", \"oh\" => \"yeah\"); foreach($array as $i=>$k) { echo $i.\'-\'.$
this would do:
rtrim ($string, ',')