note 48811 deleted from function.stripslashes by aidan
| From: | aidan@php.net | Date: | Sat, 15 Jan 2005 12:55:15 +0000 |
| Subject: | note 48811 deleted from function.stripslashes by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-83301@lists.php.net to get a copy of this message | ||
Note Submitter: SiMM
----
WARNING!!!
This function depends on magic_guotes_sybase option (see http://php.net/addslashes)
example:
<?php
$x = '\\"\'';
ini_set('magic_quotes_sybase',0);
echo addslashes($x)."\n"; // printed \\\"\'
echo stripslashes(addslashes($x))."\n"; // printed \"'
ini_set('magic_quotes_sybase',1);
echo addslashes($x)."\n"; // printed \"''
echo stripslashes(addslashes($x)); // printed \"'
?>