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

⌈⌋ ⎇ branch:  upgrade.php


Artifact [b1af43e281]

Artifact b1af43e281a993adbee18167f4bc5f3437241c1a:

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

--TEST--
str_ireplace
--FILE--
<?php

$text = "ABC_abc_DEF_def_AAaaAAaa_DDddEEee";
echo "\$text = \"$text\";\n";
echo 'str_ireplace("abc", "xxx", $text);'."\n\n";

$text = str_ireplace("abc", "xxx", $text);
echo "\$text = \"$text\";\n";

?>
--EXPECT--
$text = "ABC_abc_DEF_def_AAaaAAaa_DDddEEee";
str_ireplace("abc", "xxx", $text);

$text = "xxx_xxx_DEF_def_AAaaAAaa_DDddEEee";