PHP function is_float()

Availability in PHP 4.0

Checks if the input value is float (floating point number).

For example, the number 3.14 is float.

Parameters

Parameter Data type Default value Note
$var mixed not Variable to be validated.

Return values

bool

Returns true if float. Otherwise false

Other resources

[Official is-float documentation](Official manual)

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.