note 89687 added to function.stripslashes
| From: | o-zone at zerozone dot it | Date: | Thu, 19 Mar 2009 11:53:43 +0000 |
| Subject: | note 89687 added to function.stripslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-152129@lists.php.net to get a copy of this message | ||
If you need to remove all slashes from a string, here's a quick hack:
function stripallslashes($string) {
while(strchr($string,'\\')) {
$string = stripslashes($string);
}
}
Hope it's usefull , O-Zone
----
Server IP: 213.92.11.19
Probable Submitter: 192.167.125.9
----
Manual Page -- http://www.php.net/manual/en/function.stripslashes.php
Edit -- https://master.php.net/note/edit/89687
Del: integrated -- https://master.php.net/note/delete/89687/integrated
Del: useless -- https://master.php.net/note/delete/89687/useless
Del: bad code -- https://master.php.net/note/delete/89687/bad+code
Del: spam -- https://master.php.net/note/delete/89687/spam
Del: non-english -- https://master.php.net/note/delete/89687/non-english
Del: in docs -- https://master.php.net/note/delete/89687/in+docs
Del: other reasons-- https://master.php.net/note/delete/89687
Reject -- https://master.php.net/note/reject/89687
Search -- https://master.php.net/manage/user-notes.php