preg_split
preg_split
(PHP 4, PHP 5, PHP 7)
preg_split — Split string by a regular expression
Description
array preg_split ( string $pattern , string $subject [, int $limit = -1 [, int $flags = 0 ]] )
Split the given string by a regular expression.
Parameters
-
pattern
-
The pattern to search for, as a string.
-
subject
-
The input string.
-
limit登录查看完整内容