string to array in php

45

$myString = "9,[email protected],8";
$myArray = explode(',', $myString);
print_r($myArray);
$array = explode(' ', $string);
$array = str_split($string);

Comments

Submit
0 Comments