Closed
Description
Description
The following code:
<?php
print_r(str_split('', 1));
print_r(mb_str_split('', 1));
print_r(mb_str_split('', 1, 'UTF-8'));
print_r(mb_str_split('', 1, 'ASCII'));
print_r(array_chunk([], 1));
Resulted in but I expected this output instead:
Array
(
- [0] =>
)
Array
(
)
Array
(
)
Array
(
)
Array
(
)
I belive this is an inconsistency that should be fixed.
The inconsistency was introduced in 0818fae by a mistake as found out by @emkey08 in the discussion below.
PHP Version
PHP 7.4 - master
Operating System
any