-
Problems with money_format or setlocale
I have an value that I grabbed from a database that I want to convert to US money format. On my test server (PHP 4.3.3) I have the following:
setlocale(LC_ALL, 'en_US');
$value= money_format('%(.0n', $value);
The output is like this: $180,000
But when I upload the script to the production server (PHP 4.3.8), the output looks like all numbers, no formating: 180000
Does someone have any idea what's going on?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks