php-src/ext/standard/tests/strings/strtr.phpt
Thies C. Arntzen e929389eeb fix strtr() when called with two parameters. this has been broken for some time!
guys, when "optimizing" functions you _shoudl_ write a testcase for the
working function and make _sure_ that it works afterwards!
2001-09-13 10:48:41 +00:00

12 lines
248 B
PHP

--TEST--
strtr() function
--POST--
--GET--
--FILE--
<?php
$trans = array("hello" => "hi", "hi" => "hello","a" => "A","world" => "planet");
echo strtr("# hi all, I said hello world! #", $trans) . "\n";
?>
--EXPECT--
# hello All, I sAid hi planet! #