The explode() function splits a string into an indexed array at a specified separator. code example
Example: explode comma php
$myString = "9,[email protected],8";
$myArray = explode(',', $myString);
print_r($myArray);
$myString = "9,[email protected],8";
$myArray = explode(',', $myString);
print_r($myArray);