/hphp/test/zend/good/ext/standard/tests/strings/bug27457.php
PHP | 12 lines | 12 code | 0 blank | 0 comment | 0 complexity | c48688cfbf983d3937de6d0f2a8468a8 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?hh <<__EntryPoint>> function main(): void {
- $test = "Dot in brackets [.]\n";
- echo $test;
- $test = strtr($test, darray['.' => '0']);
- echo $test;
- $test = strtr($test, darray['0' => '.']);
- echo $test;
- $test = strtr($test, '.', '0');
- echo $test;
- $test = strtr($test, '0', '.');
- echo $test;
- }