mirror of
https://github.com/php/php-src.git
synced 2024-10-22 16:57:05 +00:00
10 lines
297 B
PHP
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! #"
|