note 81402 added to function.stripslashes
| From: | Evgeny at osu1 dot php dot net | Date: | Tue, 26 Feb 2008 15:52:37 +0000 |
| Subject: | note 81402 added to function.stripslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-136501@lists.php.net to get a copy of this message | ||
extended version of stripslashes_deep. This allow to strip one also in the array_keys
function stripslashes_deep($value) {
if (is_array($value)) {
if (count($value)>0) {
$return = array_combine(array_map('stripslashes_deep',
array_keys($value)),array_map('stripslashes_deep', array_values($value)));
} else {
$return = array_map('stripslashes_deep', $value);
}
return $return;
} else {
$return = stripslashes($value);
return $return ;
}
}
----
Server IP: 195.54.192.44
Probable Submitter: 80.240.61.50
----
Manual Page -- http://www.php.net/manual/en/function.stripslashes.php
Edit -- https://master.php.net/note/edit/81402
Del: integrated -- https://master.php.net/note/delete/81402/integrated
Del: useless -- https://master.php.net/note/delete/81402/useless
Del: bad code -- https://master.php.net/note/delete/81402/bad+code
Del: spam -- https://master.php.net/note/delete/81402/spam
Del: non-english -- https://master.php.net/note/delete/81402/non-english
Del: in docs -- https://master.php.net/note/delete/81402/in+docs
Del: other reasons-- https://master.php.net/note/delete/81402
Reject -- https://master.php.net/note/reject/81402
Search -- https://master.php.net/manage/user-notes.php