Hello Guys i need to do this,
I have a common loop
foreach ($stuffs as $stuff) { echo $stuff; }
Lets assume $stuff is an \'id\' of a my
implode should be the tool:
implode(",", $stuffs);
will return a comma separated list.
$myarray=array(1,2,"hello",4,5); echo implode(",", $myarray);
returns
1,2,hello,4,5