PHP is_double() Function
The PHP is_double() function in PHP is used to find whether the type of the specified variable is a float or not. It returns a Boolean value true if the parameter var is float else it returns false.
This function in an alias of is_float() function.
Syntax
is_ double( mixed $var )
Parameter
var(required)- This parameter represents the value to check.
Return
This function returns a Boolean value TRUE if the parameter var is a float, else it returns FALSE.
Example 1
Output
The var is Float
Example 2
Output
1232 is not a float value.
Example 3
Output
1232 is not a float value.