Query: is_bool
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IS_BOOL(3) 1 IS_BOOL(3) is_bool - Finds out whether a variable is a booleanSYNOPSISbool is_bool (mixed $var)DESCRIPTIONFinds whether the given variable is a boolean.PARAMETERSo $var - The variable being evaluated.RETURN VALUESReturns TRUE if $var is a boolean, FALSE otherwise.EXAMPLESExample #1 is_bool(3) examples <?php $a = false; $b = 0; // Since $a is a boolean, it will return true if (is_bool($a) === true) { echo "Yes, this is a boolean"; } // Since $b is not a boolean, it will return false if (is_bool($b) === false) { echo "No, this is not a boolean"; } ?>SEE ALSOis_float(3), is_int(3), is_string(3), is_object(3), is_array(3). PHP Documentation Group IS_BOOL(3)
Related Man Pages |
---|
gettype(3) - php |
is_object(3) - php |
is_int(3) - php |
isset(3) - php |
is_string(3) - php |
Similar Topics in the Unix Linux Community |
---|
awk value return |
Samba pre-install questions. |
Authentication problems with Active Directory/Samba/Winbind/Pam |
Missing conjunction |
what's wrong with that loop ? |