note 50218 deleted from function.array-map by philip
| From: | philip@php.net | Date: | Thu, 22 Feb 2007 02:01:51 +0000 |
| Subject: | note 50218 deleted from function.array-map by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-123692@lists.php.net to get a copy of this message | ||
Note Submitter: nick at netdupeNOSPAM dot com
----
This function comes in handy for $_POST, $_GET input. Allowing you to quickly check user input.
For example:
<?php
$_POST = array_map('addslashes', $_POST);
//or
$_GET = array_map('addslashes', $_GET);
?>
You could also use it to trim, strip tags etc. Saves a lot of time when having to check a lot of
input values.