preg_split

Example

 array preg_split ( string $pattern , string $subject [, int $limit = -1 [, int $flags = 0 ]] ) 

Description

Split the given string by a regular expression.

Return Values

Returns an array containing substrings of subject split along boundaries matched by pattern.