PHP Manual
Prev |  | Next

# is_float

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

is_float -- Finds whether a variable is a float

## Description

``bool is_float` (mixed var)`

Returns `TRUE` if `var` is a float, `FALSE` otherwise.

> Tip: To test if a variable is a number or a numeric string (such as form input, which is always a string), you must use is_numeric().

See also is_bool(), is_int(), is_integer(), is_numeric(), is_string(), is_array(), and is_object(),

Prev | Home | Next
is_double | Up | is_int