Re: Recursion to sanitize user input

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

 



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

-- 
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