split

Example

 array split ( string $pattern , string $string [, int $limit = -1 ] ) 

Description

Splits a string into array by regular expression. Warning: This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.

Return Values

Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the case-sensitive regular expression pattern. If there are n occurrences of pattern, the returned array will contain n+1 items. For example, if there is no occurrence of pattern, an array with only one element will be returned. Of course, this is also true if string is empty. If an error occurs, split() returns FALSE.