note 75887 added to function.stripslashes
| From: | lukas dot skowronskiatgmaildotcom at osu1 dot php dot net | Date: | Wed, 20 Jun 2007 11:15:08 +0000 |
| Subject: | note 75887 added to function.stripslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-127826@lists.php.net to get a copy of this message | ||
If You want to delete all slashes from any table try to use my function:
function no_slashes($array)
{
foreach($array as $key=>$value)
{
if(is_array($value))
{
$value=no_slashes($value);
$array_temp[$key]=$value;
}
else
{
$array_temp[$key]=stripslashes($value);
}
}
return $array_temp;
}
----
Server IP: 195.136.184.34
Probable Submitter: 83.13.127.254
----
Manual Page -- http://www.php.net/manual/en/function.stripslashes.php
Edit -- https://master.php.net/note/edit/75887
Del: integrated -- https://master.php.net/note/delete/75887/integrated
Del: useless -- https://master.php.net/note/delete/75887/useless
Del: bad code -- https://master.php.net/note/delete/75887/bad+code
Del: spam -- https://master.php.net/note/delete/75887/spam
Del: non-english -- https://master.php.net/note/delete/75887/non-english
Del: in docs -- https://master.php.net/note/delete/75887/in+docs
Del: other reasons-- https://master.php.net/note/delete/75887
Reject -- https://master.php.net/note/reject/75887
Search -- https://master.php.net/manage/user-notes.php