mb_split

(PHP 4 >= 4.2.0, PHP 5, PHP 7)

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

说明

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

使用正则表达式 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.

参见

相关文章
php 字符串 函数 将字符串分割成小块php 字符串 函数 使用一个字符串分割另一个字符串php 多字节字符串 函数 检查字符串在指定的编码里是否有效php 多字节字符串 函数 get aliases of a known encoding typephp 多字节字符串 函数 regular expression match for multibyte stringphp 多字节字符串 函数 perform a regular expression search and replace with multibyte support using a callbackphp 多字节字符串 函数 replace regular expression with multibyte supportphp 多字节字符串 函数 returns start point for next regular expression matchphp 多字节字符串 函数 设置/获取 http 输出字符编码php 多字节字符串 函数 设置/获取内部字符编码php 多字节字符串 函数 设置/获取当前的语言php 多字节字符串 函数 返回所有支持编码的数组php 多字节字符串 函数 使用正则表达式分割多字节字符串php 多字节字符串 函数 大小写不敏感地查找字符串在另一个字符串里的首次出现php 多字节字符串 函数 获取字符串的长度php 多字节字符串 函数 查找字符串在另一个字符串中首次出现的位置php 多字节字符串 函数 查找指定字符在另一个字符串中最后一次的出现php posix 正则表达式函数 用正则表达式将字符串分割到数组中php posix 正则表达式函数 用正则表达式不区分大小写将字符串分割到数组中php 多字节字符串 多字节字符串 函数
关注编程学问公众号