Core Function isVarBool
From Sputnik Wiki
isVarBool( $variable )
Contents |
Description
Checks if a variable is a boolean type.
Parameters
variable
The variable to check.
Return Value
Success: Returns true.
Failure: Returns false.
Remarks
None.
Example
$var1 = true; println( "Is it?: " . isVarBool($var1) ); // Alternative println( $var1 is Bool ); // Alternative println( $var1 ~~ Bool );