Add test for mb_str_split on UCS-2 text

This commit is contained in:
Alex Dowad 2021-07-30 16:14:46 +02:00
parent f303fc8a9b
commit 671dcee01e

View file

@ -0,0 +1,11 @@
--TEST--
mb_str_split() tests for more text encodings
--EXTENSIONS--
mbstring
--FILE--
<?php
$array = mb_str_split("\x00\x01\x02\x03\x04\x05\x06\x07", 2, "UCS-2BE");
echo "[", bin2hex($array[0]), ", ", bin2hex($array[1]), "]\n";
?>
--EXPECT--
[00010203, 04050607]