★ wanayoo — archive 1999 http://www.php.net/manual/function.doubleval.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Variables
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
Variables
* call_user_func
* doubleval
* empty
* gettype
* intval
* is_array
* is_bool
* is_double
* is_float
* is_int
* is_integer
* is_long
* is_numeric
* is_object
* is_real
* is_resource
* is_string
* isset
* print_r
* settype
* strval
* unset
* var_dump
Manual: doubleval
View the source code for this pageSearch the site



Previous page
 call_user_func
 Updated
Sat, 12 Aug 2000
empty 
Next page


doubleval

(PHP3 , PHP4 )

doubleval -- Get double value of a variable

Description

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.


$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.


 About Notes


Previous page
 call_user_func
 Updated
Sat, 12 Aug 2000
empty 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.