note 89687 modified in function.stripslashes by danbrown
| From: | danbrown@php.net | Date: | Thu, 19 Mar 2009 13:11:17 +0000 |
| Subject: | note 89687 modified in function.stripslashes by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-152138@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:
<?php
function stripallslashes($string) {
while(strchr($string,'\\')) {
$string = stripslashes($string);
}
}
?>
Hope it's usefull , O-Zone
--was--
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
http://php.net/manual/en/function.stripslashes.php