php explode string by comma code example
Example 1: explode comma php
$myString = "9,[email protected],8";
$myArray = explode(',', $myString);
print_r($myArray);
Example 2: php explode
$colors = "red,blue,green,orange";
$colorsArray = explode(",", $colors);
Example 3: php split string
explode(" ","Geeks for Geeks")