PageRenderTime 41ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/2.0/Tests/@PHP/standard/strings/strtr.php

#
PHP | 9 lines | 7 code | 1 blank | 1 comment | 0 complexity | 8cbe8902e2ae04f88cc1bd4dd133c518 MD5 | raw file
Possible License(s): CPL-1.0, GPL-2.0, CC-BY-SA-3.0, MPL-2.0-no-copyleft-exception, Apache-2.0
  1. [expect php]
  2. [file]
  3. <?php
  4. require('Phalanger.inc');
  5. /* Do not change this test it is a README.TESTING example. */
  6. $trans = array("hello"=>"hi", "hi"=>"hello", "a"=>"A", "world"=>"planet");
  7. __var_dump(strtr("# hi all, I said hello world! #", $trans));
  8. ?>