note 31953 rejected from function.money-format by rioter
| From: | rioter@php.net | Date: | Sat, 10 May 2003 01:06:46 +0000 |
| Subject: | note 31953 rejected from function.money-format by rioter | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-47805@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?