boolean is_bool(expression)
Use is_bool to test whether an expression is a boolean.
boolean is_double(expression)
The is_double function returns TRUE if the expression is a double, FALSE otherwise.
<?
$Temperature = 15.23;
if(is_double($Temperature))
{
print("Temperature is a double");
}
?>
is_float
The is_float function is an alias for the is_double function.
is_int
The is_int function is an alias for the is_integer function.
boolean is_integer(expression)
The is_integer function returns TRUE if the expression is an integer, FALSE otherwise.
<?
$PageCount = 2234;
if(is_integer($PageCount))
{
print("$PageCount is an integer");
}
?>
is_long
The is_long function is an alias for the is_integer function.
boolean is_object(expression)
The is_object function returns TRUE if the expression is an object, FALSE otherwise.