split
(PHP 4, PHP 5)
split — Split string into array by regular expression
array split ( string $pattern , string $string [, int $limit ] )
WarningThis function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.
preg_split(), which uses a Perl-compatible regular expression syntax, is often a faster alternative to split(). If you don’t require the power of regular expressions, it is faster to use explode(), which doesn’t incur the overhead of the regular expression engine.
Note: As of PHP 5.3.0 the regex extension is deprecated in favor of the PCRE extension. Calling this function will issue an E_DEPRECATED notice.