note 31953 added to function.money-format
| From: | mdb at gci dot net | Date: | Sat, 10 May 2003 00:31:15 +0000 |
| Subject: | note 31953 added to function.money-format | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-47803@lists.php.net to get a copy of this message | ||
<?php
$number = 1234.56;
// let's print the international format for the en_US locale
setlocale(LC_MONETARY, 'en_US');
echo money_format('%i', $number)."\n";
// USD 1,234.56
?>
running this gives the following:
Fatal error: Call to undefined function: money_format() in C:\Program Files\Apache
Group\Apache2\htdocs\money_format.php on line 5
phpinfo shows PHP Version 4.3.0.
According to the documentation, shouldn't this work?
--
http://www.php.net/manual/en/function.money-format.php
http://master.php.net/manage/user-notes.php?action=edit+31953
http://master.php.net/manage/user-notes.php?action=delete+31953
http://master.php.net/manage/user-notes.php?action=reject+31953