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.
HIVE: All information for read only. Please respect copyright! |