/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

  1. <?hh <<__EntryPoint>> function main(): void {
  2. $test = "Dot in brackets [.]\n";
  3. echo $test;
  4. $test = strtr($test, darray['.' => '0']);
  5. echo $test;
  6. $test = strtr($test, darray['0' => '.']);
  7. echo $test;
  8. $test = strtr($test, '.', '0');
  9. echo $test;
  10. $test = strtr($test, '0', '.');
  11. echo $test;
  12. }