php explode comma separated list code example
Example 1: explode comma php
$myString = "9,[email protected],8";
$myArray = explode(',', $myString);
print_r($myArray);
Example 2: array to string separated by comma php
$arr = array ( 0 => "lorem", 1 => "ipsum", 2 => "dolor");
$str = implode (", ", $arr);