note 55132 deleted from function.array-keys by danbrown
| From: | danbrown@php.net | Date: | Wed, 25 Aug 2010 01:49:50 +0000 |
| Subject: | note 55132 deleted from function.array-keys by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172012@lists.php.net to get a copy of this message | ||
Note Submitter: erwin at spammij dot nl
----
//'This will use the array_keys function to make all $_POST values addslashed.
$post_array_keys = array_keys($_POST);
for ($g=0;$g<count($post_array_keys);$g++) {
$_POST[$post_array_keys[$g]] = addslashes($_POST[$post_array_keys[$g]]);
}