mirror of
https://github.com/php/php-src.git
synced 2024-10-14 13:02:37 +00:00
e929389eeb
guys, when "optimizing" functions you _shoudl_ write a testcase for the working function and make _sure_ that it works afterwards!
12 lines
248 B
PHP
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! #
|