PHP userland backwards compatibility layer that emulates PHP 5.5+ core functions.

⌈⌋ ⎇ branch:  upgrade.php


Artifact [ee12143a0d]

Artifact ee12143a0da161192259d80394a16a264b7d372b:

  • File doc/tests1all/str_split.phpt — part of check-in [51e3884900] at 2010-06-22 17:03:27 on branch trunk — upgradephp-15 (user: mario size: 314)

--TEST--
str_split
--FILE--
<?php


?>
$str = "Hello Friend";
$r = str_split($str, 3);
print_r($r);

<?php
$str = "Hello_Friend";
$r = str_split($str, 3);
print_r($r);
?>
--EXPECT--
$str = "Hello Friend";
$r = str_split($str, 3);
print_r($r);

Array
(
    [0] => Hel
    [1] => lo_
    [2] => Fri
    [3] => end
)