You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: generated/mbstring.php
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -493,3 +493,34 @@ function mb_split(string $pattern, string $string, int $limit = -1): array
493
493
}
494
494
return$result;
495
495
}
496
+
497
+
498
+
/**
499
+
* 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.
500
+
* If the split_length parameter is specified, the string is broken down into chunks of the specified length in characters (not bytes).
501
+
* The encoding parameter can be optionally specified and it is good practice to do so.
502
+
*
503
+
* @param string $string The string to split into characters or chunks.
504
+
* @param int $split_length If specified, each element of the returned array will be composed of multiple characters instead of a single character.
505
+
* @param string $encoding The encoding
506
+
* parameter is the character encoding. If it is omitted, the internal character
507
+
* encoding value will be used.
508
+
*
509
+
* A string specifying one of the supported encodings.
510
+
* @return array mb_str_split returns an array of strings.
0 commit comments