Re: Recursion to sanitize user input

From: Date: Sat, 09 Oct 2004 00:01:25 +0000
Subject: Re: Recursion to sanitize user input
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-199037@lists.php.net to get a copy of this message
this would probably be even better: foreach ( $userInput as $key => $value ) { $newvalue[$key] = sanitize( $value ); // reassign key with sanatized value } return $newvalue // return array with sanatized $key => $value pairs } else My 2 cents:

« previous php.general (#199037) next »