Re: Recursion to sanitize user input
| From: | Robet Carson | Date: | Fri, 08 Oct 2004 23:51:09 +0000 |
| Subject: | Re: Recursion to sanitize user input | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199036@lists.php.net to get a copy of this message | ||
it should be this i think:
foreach ( $userInput as $key => $value )
{
$newvalue[] = sanitize( $value );
}
return $newvalue // returns an array - since this is the only
way to get all veriables from the function
}
else
I could be wrong but the only way it would work for the code you have
writen would be to return an array of all the sanatized strings