xref: /PHP-7.3/ext/standard/tests/strings/strtr.phpt (revision b746e698)
1--TEST--
2strtr() function
3--FILE--
4<?php
5/* Do not change this test it is a README.TESTING example. */
6$trans = array("hello"=>"hi", "hi"=>"hello", "a"=>"A", "world"=>"planet");
7var_dump(strtr("# hi all, I said hello world! #", $trans));
8?>
9--EXPECT--
10string(32) "# hello All, I sAid hi planet! #"
11