[eluser]Unknown[/eluser]
I believe you are just looking for the PHP function explode().
$arrayofvalues = explode(",", $originalstring);
The first option of the function is the character (or characters) that you want to split the string apart with. In your case it's a comma.