/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
- [expect php]
- [file]
- <?
- $x = '/* tooltips and access keys */
- ta = new Object();
- ta[\'pt-userpage\'] = new Array(\'.\',\'My user page\');
- ta[\'pt-anonuserpage\'] = new Array(\'.\',\'The user page for the ip you\\\'re editing as\');';
-
- ini_set("magic_quotes_sybase",0);
- echo addslashes($x), "\n\n";
- ini_set("magic_quotes_sybase",1);
- echo addslashes($x), "\n\n";
-
- ?>