LaravelConf Taiwan 2020 CFP Started


(PHP 7 >= 7.4.0)

mb_str_splitGiven a multibyte string, return an array of its characters


mb_str_split ( string $string [, int $split_length = 1 [, string $encoding = mb_internal_encoding() ]] ) : array

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 split_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.

Liste de paramètres


The chaîne de caractères to split into characters or chunks.


If specified, each element of the returned array will be composed of multiple characters instead of a single character.


Le paramètre encoding est l'encodage des caractères. S'il est omis, l'encodage de caractères interne sera utilisé.

A string specifying one of the supported encodings.

Valeurs de retour

mb_str_split() returns an array of strings, ou FALSE si une erreur survient.

Voir aussi

  • str_split() - Convertit une chaîne de caractères en tableau

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top