You can use \s+
to match one or more empty spaces, which includes newlines.
Also, you could add a fourth parameter PREG_SPLIT_NO_EMPTY
to exclude any matching spaces.
$foo = preg_split ("/\s+/", $text, 0, PREG_SPLIT_NO_EMPTY);
For more information, see preg_split().