mb_split
(PHP 4 >= 4.2.0, PHP 5)
mb_split — Split multibyte string using regular expression
说明
array mb_split ( string $pattern , string $string [, int $limit = -1 ] )Split a multibyte string using regular expression pattern and returns the result as an array.
参数
- pattern
-
The regular expression pattern.
- string
-
The string being split.
- limit
- If optional parameter limit is specified, it will be split in limit elements as maximum.
返回值
The result as an array.
注释
Note:
mb_regex_encoding() 指定的内部编码或字符编码将会当作此函数用的字符编码。
参见
- mb_regex_encoding() - Returns current encoding for multibyte regex as string
- mb_ereg() - Regular expression match with multibyte support