note 18236 added to function.stripslashes
| From: | alex at netflex dot nl | Date: | Tue, 15 Jan 2002 15:20:14 +0000 |
| Subject: | note 18236 added to function.stripslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-24844@lists.php.net to get a copy of this message | ||
I think this is a better way for multidimensional arrays >> fferreres@joydivision.com.ar
function stripslashes_array($arr = array()) {
$rs = array();
while (list($key,$val) = each($arr)) {
if (is_array($val)) {
$rs[$key] = stripslashes_array($val);
} else {
$rs[$key] = stripslashes($val);
}
}
return $rs;
}
--
http://www.php.net/manual/en/function.stripslashes.php
http://master.php.net/manage/user-notes.php?action=edit+18236
http://master.php.net/manage/user-notes.php?action=delete+18236
http://master.php.net/manage/user-notes.php?action=reject+18236