php-src/ext/standard/tests/strings/strtr.phpt
2003-12-22 23:45:53 +00:00

10 lines
297 B
PHP

--TEST--
strtr() function
--FILE--
<?php
/* Do not change this test it is a README.TESTING example. */
$trans = array("hello"=>"hi", "hi"=>"hello", "a"=>"A", "world"=>"planet");
var_dump(strtr("# hi all, I said hello world! #", $trans));
?>
--EXPECT--
string(32) "# hello All, I sAid hi planet! #"