YouTip LogoYouTip

Php Is_Bool Function

# PHP is_bool() Function [![Image 3: PHP Available Functions](#)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 [![Image 4: PHP Available Functions](#)PHP Available Functions](#)
← Php Is_Int FunctionPhp Gettype Function β†’