mb_str_split
mb_str_split
Given a multibyte string, return an array of its characters
array **mb_str_split** string $string int $length $encoding
This function will return an array of strings, it is a version of with support for encodings of variable character size as well as fixed-size encodings of 1,2 or 4 byte characters.
If the parameter is specified, the string is broken down into chunks of the specified length in characters (not bytes).
The parameter can be optionally specified and it is good practice to do so.
str_split``length``encoding
stringThe string to split into characters or chunks.
lengthIf specified, each element of the returned array will be composed of multiple characters instead of a single character.
encoding
A string specifying one of the .
supported encodings
returns an array of strings.
mb_str_split
str_split``grapheme_str_split``explode