| ashnazg | Yes | 2019-01-16 16:18 |
| colinodell | Yes | 2019-01-12 14:26 |
| galvao | Yes | 2019-01-18 17:24 |
| girgias | Yes | 2019-01-10 18:57 |
| kalle | Yes | 2019-01-18 12:17 |
| kguest | Yes | 2019-01-10 17:52 |
| lex | Yes | 2019-01-18 09:35 |
| mcmic | Yes | 2019-01-14 12:53 |
| petk | Yes | 2019-01-16 15:58 |
| salathe | No | 2019-01-14 19:47 |
| yunosh | Yes | 2019-01-11 09:01 |
Copied from wiki.php.net, last synchronized Oct 13, 2026 11:51 UTC
mb_str_split is a function to perform string splitting to an array of defined size chunks.
array mb_str_split (string $string [, integer $split_length = 1, string $encoding = mb_internal_encoding() ])
The function works through the libmbfl library and supports all libmbfl supported charsets just like other mbstring functions.
<?php
print_r(mb_str_split("победа", 2));
--EXPECT--
Array
(
[0] => по
[1] => бе
[2] => да
)
Include function into the existent mbstring extension.
next PHP-7.x
mbstring
Opcache is not affected.
No.
No.
No.
This project requires 50%+1 majority. The voting period: from 2019-01-10 to 2019-01-20.
Vote: Include mb_str_split into next PHP-7.x? — Yes: 10 · No: 1 (closed)
https://github.com/php/php-src/pull/3715https://github.com/php/php-src/pull/3808