mb-str-split
mb_str_split
Given a multibyte string, return an array of its characters
ENTITY
array
mb_str_split
string
string
int
length
1
string
null
encoding
ENTITY
This function will return an array of strings, it is a version of str_split with support for encodings of variable character size as well as fixed-size encodings of 1,2 or 4 byte characters. If the length parameter is specified, the string is broken down into chunks of the specified length in characters (not bytes). The encoding parameter can be optionally specified and it is good practice to do so.
ENTITY
string
The ENTITY to split into characters or chunks.
length
If specified, each element of the returned array will be composed of multiple characters instead of a single character.
encoding
ENTITY
A string specifying one of the supported encodings.
ENTITY
mb_str_split returns an array of strings.
ENTITY ENTITY
ENTITY
| ENTITY | ENTITY |
|---|---|
| 8.0.0 | This function no longer returns ENTITY on failure. |
ENTITY
str_split, grapheme_str_split, explode
谢谢你的反馈!