note 60627 added to function.money-format
| From: | admin at sellchain dot com | Date: | Thu, 12 Jan 2006 17:04:41 +0000 |
| Subject: | note 60627 added to function.money-format | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-101642@lists.php.net to get a copy of this message | ||
If you are just looking to format a counter or something that does not represent money, and you want
to avoid rounding, etc, just use this on a NON-DECIMAL NUMBER.
<?
echo "2406 is now " . Thousands(2406);
function Thousands($amt) {
return number_format($amt,0,'',',')
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.money-format.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+60627
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60627&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60627&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60627&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60627&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60627&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60627&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60627&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+60627&report=yes
Search -- http://master.php.net/manage/user-notes.php