PHP:Split a String
You can use explode to break a single string into an array of strings.
You can specify the string that delimits. explode(' ',$s) will split the string $s on every space character.
preg_split on regular expression
You can use a regular expression. /\s+/ will match one or more consecutive white space characters - including tabs and line end markers.