If you wish to get all the elements between 1 commas as an array, you can always
$splitted = explode(",", $my_string)
You could use e.g. substr_count(), or explode().
More Related questions