note 59515 deleted from function.stripslashes by philip
| From: | philip@php.net | Date: | Wed, 07 Feb 2007 04:55:35 +0000 |
| Subject: | note 59515 deleted from function.stripslashes by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-123010@lists.php.net to get a copy of this message | ||
Note Submitter: php at baskettcase dot com
----
array_walk is not used enough. I see several people doing a foreach to strip the slashes on their
post variables, why not do this:
array_walk($_GET, 'stripslashes');
array_walk($_POST, 'stripslashes');
array_walk($_REQUEST, 'stripslashes');
use whichever you normally use in your code.