The Server Pages
:: TSP Menu
- Home
- Authors
- Glossary
- RSS Feed

:: Servers
- CPanel
- Hosting
- Linux
- Windows

:: Webmaster
- Databases
- Design
- PHP
- Search Engines

:: Scripts
- Scripts

:: Documentation
- PHP Manual

:: Other
- Errors & Solutions
- TechPunt
- Wojjie

search for in the

empty> <debug_zval_dump
[edit] Last updated: Sat, 12 May 2012

view this page in

doubleval

(PHP 4, PHP 5)

doublevalAlias of floatval()

Description

This function is an alias of: floatval().

Changelog

Version Description
4.2.0 doubleval() became an alias of floatval(). Before this time, only doubleval() existed.



add a note add a note User Contributed Notes doubleval
Anonymous 13-Sep-2010 10:30
We can convert the value to normal decimal value...
<?php
 $mynumstr
= "100,000,000.75";
 
$mynum = doubleval(str_replace(",","",$mynumstr));
 echo
"Normal Value:".number_format($mynumstr);
?>

 
show source | credits | sitemap | contact | advertising | mirror sites