$str = 'string'; $chars = preg_split(' / /', $str, -1, PREG_SPLIT_NO_EMPTY); print_r($chars);
?php / / scinde la phrase grâce aux virgules et espacements / / ce qui inclus les "", \r, \t, \n et \f $keywords = preg_split (" / [\s ,]+ / ", "langage hypertexte, programmation");?