Jump to content
Larry Ullman's Book Forums

How To Validate Zero Using Filter_Input(Input_Post, '', Input_Validate_Int)


Recommended Posts

Hi,

 

how to we use the filter_input(INPUT_POST, '', FILTER_VALIDATE_INT) to validate zero as int ?

 

I always get false when i try to use the filter on an input that has a value of zero.

 

Bahaa,

Link to comment
Share on other sites

 Share

×
×
  • Create New...