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
$string = '9,admin@google.com,8'; $array = explode(',', $string);
For more complicated situations, you may need to use preg_split.