PageRenderTime 40ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/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
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
  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. }