PHP is_bool() Function

PHP is_bool Function Tutorial


PHP is_bool() is an inbuilt function in php. The is_bool() function is used to find whether a variable is an a boolean or not.

Syntax:

boolean is_bool($variable_name)
$variable_name:the variable we want to check.

return value: It is a boolean function so returns TRUE when $variable_name is a boolean value, otherwise FALSE.