My Account
Search for:
Search for:
My Account
Home
Business Directory
Celebrities
Question And Answer
All Questions
Ask Your Questions
Shop
Menu
Home
Business Directory
Celebrities
Question And Answer
All Questions
Ask Your Questions
Shop
How do you use filter_validate_boolean in PHP?
DWQA Questions
›
How do you use filter_validate_boolean in PHP?
0
Vote Up
Vote Down
Tamil Amuthan
Staff
asked 4 years ago
The FILTER_VALIDATE_BOOLEAN
filter
validates
fee
as a boolean option.
Possible
return
values:
Returns TRUE for “1”, “true”, “on” and “yes”
Returns FALSE for “0”, “false”, “off” and “no”
Returns NULL on failure if FILTER_NULL_ON_FAILURE is set.