Re: Recursion to sanitize user input

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux