I need to split my string input into an array at the commas.
How can I go about accomplishing this?
9,admin@example.com,8
Try explode:
$myString = "9,admin@example.com,8"; $myArray = explode(',', $myString); print_r($myArray);
Output :
Array ( [0] => 9 [1] => admin@example.com [2] => 8 )