mb_str_split
(PHP 7 >= 7.4.0, PHP 8)
mb_str_split — Given a multibyte string, return an array of its characters
Parameters
string
-
The string 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
-
The encoding
parameter is the character encoding. If it is omitted or null, the internal character
encoding value will be used.
A string specifying one of the supported encodings.
Return Values
mb_str_split() returns an array of strings.
Errors/Exceptions
As of PHP 8.0.0, a ValueError is thrown if
encoding is an invalid encoding.
Prior to PHP 8.0.0, an E_WARNING was emitted instead.