导航首页 » 技术教程 » PHP:mb_split()的用法_mbstring函数
PHP:mb_split()的用法_mbstring函数 141 2023-12-11   

mb_split

(PHP 4 >= 4.2.0, PHP 5)

mb_split — 使用正则表达式分割多字节字符串

说明

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

使用正则表达式 pattern 分割多字节 string 并返回结果 array。

参数

pattern

正则表达式。

string

待分割的 string。

limit 如果指定了可选参数 limit,将最多分割为 limit 个元素。

返回值

array 的结果。

注释

Note:

The character encoding specified by mb_regex_encoding() will be used as the character encoding for this function by default.

参见

mb_regex_encoding() - Set/Get character encoding for multibyte regex mb_ereg() - Regular expression match with multibyte support


!!!站长长期在线接!!!

网站、小程序:定制开发/二次开发/仿制开发等

各种疑难杂症解决/定制接口/定制采集等

站长微信:lxwl520520

站长QQ:1737366103