xref: /php-src/ext/standard/tests/strings/strtr.phpt (revision 0e60b812)
1--TEST--
2strtr() function
3--FILE--
4<?php
5$trans = array("hello"=>"hi", "hi"=>"hello", "a"=>"A", "world"=>"planet");
6var_dump(strtr("# hi all, I said hello world! #", $trans));
7?>
8--EXPECT--
9string(32) "# hello All, I sAid hi planet! #"
10