Check the manual entry on preg_split. It's way more powerful than split, strtok, or explode. Of course split or explode might also do what you want. If the forum butchers this code its just a copy of the example in the manual for preg_split anyway.
// split the phrase by any number of commas or space characters,
// which include " ", \r, \t, \n and \f
$keywords = preg_split ("/[\s,]+/", "hypertext language, programming");