create array from commas string php code example
Example 1: create array from string with commas php
$myString = "9,[email protected],8";
$myArray = explode(',', $myString);
print_r($myArray);
Example 2: how to convert array to string with commas in php
$tags = implode(', ', array('tag1','tag2','tag3','tag4'));