note 75885 deleted from function.is-array by tularis
| From: | tularis@php.net | Date: | Sun, 09 Oct 2011 09:27:25 +0000 |
| Subject: | note 75885 deleted from function.is-array by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183740@lists.php.net to get a copy of this message | ||
Note Submitter: lukas.skowronski at gmail dot com
----
If You want to del all slashes from database query result , try this function:
<?php
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;
}
?>