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