(PHP 3, PHP 4 )
double doubleval (mixed var)
double doubleval
Returns the double (floating point) value of var.
Var may be any scalar type. You cannot use doubleval() on arrays or objects.
$var = '122.34343The'; $double_value_of_var = doubleval ($var); print $double_value_of_var; // prints 122.34343
See also intval(), strval(), settype() and Type juggling.