php string separated by commas to array code example
Example 1: array to string separated by comma php
$arr = array ( 0 => "lorem", 1 => "ipsum", 2 => "dolor");
$str = implode (", ", $arr);
Example 2: create array from string with commas php
$myString = "9,[email protected],8";
$myArray = explode(',', $myString);
print_r($myArray);
Example 3: how to convert array to string with commas in php
$string = implode(', ', $tags);