note 69976 deleted from function.array-map by philip
| From: | philip@php.net | Date: | Thu, 22 Feb 2007 01:59:36 +0000 |
| Subject: | note 69976 deleted from function.array-map by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-123688@lists.php.net to get a copy of this message | ||
Note Submitter: sumdeus at gmail dot com
----
Use array_map for tasks such as making sure magic quotes doesn't cause you undue distress.
<?php
if(get_magic_quotes_gpc()){
$_REQUEST = array_map('stripslashes', $_REQUEST);
}
?>