array preg_split ( string $şablon , string $konu [, int $sınır = -1 [, int $seçenekler = 0 ]] )
<?php $string = 'one, two,three, four , five,six seven'; $array = preg_split("/[\s]*[,][\s]*/", $string); print_r($array); // Array ( [0] => one [1] => two [2] => three [3] => four [4] => five [5] => six seven ) ?>