make array comma seperated string php code example
Example 1: array to string separated by comma php
$arr = array ( 0 => "lorem", 1 => "ipsum", 2 => "dolor");
$str = implode (", ", $arr);
Example 2: convert array into , separated string in php
$tags = implode(', ', array('tag1','tag2','tag3','tag4'));