Concerning number_format()
| From: | Ed Curtis | Date: | Thu, 06 Nov 2003 14:24:06 +0000 |
| Subject: | Concerning number_format() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-168724@lists.php.net to get a copy of this message | ||
I'm using an example straight from the manual on the php site that
doesn't seem to work.
$price = "1234.567890";
$price = number_format($price, 2, '.', '');
echo $price;
Returns 1234.567890
Should return 1234.57 correct?
Thanks,
Ed