Php Filter(Php ) Questions and Answers
Explanation:-
Answer: Option B. -> Integer is not validSince the integer is “300” it is not in the specified range, and the output of the code above will be: “Integer is not valid”.
Explanation:-
Answer: Option C. -> NULLThere is an undocumented filter flag for FILTER_VALIDATE_BOOLEAN. The documentation implies that it will return NULL if the value doesn’t match the allowed true/false values. However this doesn’t happen unless you give it the FILTER_NULL_ON_FAILURE flag.