Re: Recursion to sanitize user input
| From: | zooming at gamebox dot net | Date: | Sat, 09 Oct 2004 00:44:42 +0000 |
| Subject: | Re: Recursion to sanitize user input | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199039@lists.php.net to get a copy of this message | ||
Hi Comex
Thanks! That worked! Robet you almost had it but missing the $key in
$newvalue[$key].
----- Original Message -----
From: "Comex" <comexk@gmail.com>
To: <php-general@lists.php.net>
Sent: Friday, October 08, 2004 8:05 PM
Subject: Re: [PHP] Recursion to sanitize user input
> foreach ( $userInput as $key => $value )
> {
> $newvalue[$key] = sanitize( $value );
> }
> return $newvalue;
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>