KRISTOFFER BOHMANN
[BETA]
Forside
Om KB
Kompetencer
Referencer
Variable handling
debug_zval_dump
doubleval
empty
floatval
gettype
get_defined_vars
get_resource_type
import_request_variables
intval
isset
is_array
is_bool
is_callable
is_double
is_float
is_int
is_integer
is_long
is_null
is_numeric
is_object
is_real
is_resource
is_scalar
is_string
print_r
serialize
settype
strval
unserialize
unset
var_dump
var_export
Home
>
PHP
>
Function
>
Variable handling
>
floatval()
floatval()
floatval - Get float value of a variable
Syntax
float
floatval
(
mixed
$var)
Arguments
var - May be any scalar type. floatval() should not be used on objects, as doing so will emit an E_NOTICE level error and return 1.
Description
Gets the float value of var.
Version
PHP 4.2.0, 5
Return value
The float value of the given variable. Empty arrays return 0, non-empty arrays return 1.