note 20644 added to function.number-format
| From: | ag at netside dot de | Date: | Thu, 11 Apr 2002 08:20:57 +0000 |
| Subject: | note 20644 added to function.number-format | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29094@lists.php.net to get a copy of this message | ||
A Note to richardNOSPAM@sfolb.NO_SPAM.com (somwhere up in this list)
Hi richard,
you used a rather complex way to display EURO's.
Give following lines a try:
$amount='300000';
echo = "€ ".number_format($amount, 0, '', '.');
This will result in the same output you wanted to get. Note that the decimal point is empty and the
number of decimals is zero. Therefore you wont get any decimals and no decimal point at all.
--
http://www.php.net/manual/en/function.number-format.php
http://master.php.net/manage/user-notes.php?action=edit+20644
http://master.php.net/manage/user-notes.php?action=delete+20644
http://master.php.net/manage/user-notes.php?action=reject+20644