/hphp/test/zend/good/ext/standard/tests/strings/bug27457.php
http://github.com/facebook/hiphop-php · PHP · 12 lines · 12 code · 0 blank · 0 comment · 0 complexity · c48688cfbf983d3937de6d0f2a8468a8 MD5 · raw file
- <?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;
- }