PHP is_float() Function

PHP Variable Handling Reference : Check whether a variable is of type float or not

Definition and Usage

The is_float() function checks whether a variable is of type float or not.

This function returns true (1) if the variable is of type float, otherwise it returns false.

Syntax

is_float(variable);

Parameter Values

Parameter Description
variable Required. Specifies the variable to check

Technical Details

Return Value: TRUE if variable is a float, FALSE otherwise
Return Type: Boolean
PHP Version: 4.0+

❮ PHP Variable Handling Reference