note 75885 added to function.is-array
| From: | lukas dot skowronskiatgmaildotcom at osu1 dot php dot net | Date: | Wed, 20 Jun 2007 11:10:07 +0000 |
| Subject: | note 75885 added to function.is-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-127824@lists.php.net to get a copy of this message | ||
If You want to del all slashes from database query result , try this 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.is-array.php
Edit -- https://master.php.net/note/edit/75885
Del: integrated -- https://master.php.net/note/delete/75885/integrated
Del: useless -- https://master.php.net/note/delete/75885/useless
Del: bad code -- https://master.php.net/note/delete/75885/bad+code
Del: spam -- https://master.php.net/note/delete/75885/spam
Del: non-english -- https://master.php.net/note/delete/75885/non-english
Del: in docs -- https://master.php.net/note/delete/75885/in+docs
Del: other reasons-- https://master.php.net/note/delete/75885
Reject -- https://master.php.net/note/reject/75885
Search -- https://master.php.net/manage/user-notes.php