1.

Which one of the following does not describe a validating filter?(a) Are used to allow or disallow specific characters in a string(b) Are used to validate user input(c) Strict format rules(d) Returns the expected type on success or FALSE on failureThe question was asked during an interview.This is a very interesting question from PHP Filter topic in portion Error Handling and Exception Handling in PHP of PHP

Answer»

Right CHOICE is (a) Are used to allow or disallow specific characters in a STRING

Easy explanation: Validate filter are used to validate user input, it have strict format RULES and it returns the expected TYPE on success or FALSE on failure but ‘are used to allow or disallow specific characters in a string’ describes sanitizing filters.



Discussion

No Comment Found

Related InterviewSolutions