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

/2.0/Tests/Strings/addslashes.php

#
PHP | 14 lines | 12 code | 2 blank | 0 comment | 0 complexity | 5596ee91fc1ca2ecb2bc9599010aae5a 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. <?
  4. $x = '/* tooltips and access keys */
  5. ta = new Object();
  6. ta[\'pt-userpage\'] = new Array(\'.\',\'My user page\');
  7. ta[\'pt-anonuserpage\'] = new Array(\'.\',\'The user page for the ip you\\\'re editing as\');';
  8. ini_set("magic_quotes_sybase",0);
  9. echo addslashes($x), "\n\n";
  10. ini_set("magic_quotes_sybase",1);
  11. echo addslashes($x), "\n\n";
  12. ?>