Php Is_Bool Function
# PHP is_bool() Function
[PHP Available Functions](#)
The **is_bool()** function is used to check if a variable is of boolean type.
PHP Version Requirement: PHP 4, PHP 5, PHP 7
### Syntax
bool is_bool ( mixed $var )
Parameter Description:
* $var: The variable to check.
### Return Value
Returns TRUE if var is a boolean.
### Example
## Example
Output:
Variable a is a boolean
[PHP Available Functions](#)
YouTip