note 45525 added to function.money-format
| From: | plexium dot nerd at gmail dot com | Date: | Thu, 09 Sep 2004 17:13:11 +0000 |
| Subject: | note 45525 added to function.money-format | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76338@lists.php.net to get a copy of this message | ||
When they say use setlocale() before any money_format()'s, they're not kidding.
When you don't call setlocale() before using money_format(), it will produce erratic output. At
least with PHP 4.3.2.
<?
setlocale(LC_MONETARY, "en_US");
echo money_format('%n',$DownPayment);
?>
----
Manual Page -- http://www.php.net/manual/en/function.money-format.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45525
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45525&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45525&report=yes
Search -- http://master.php.net/manage/user-notes.php