Possible Duplicate:
PHP money_format
Why does this:
setlocale(LC_MONETARY, 'en_US');
echo money_format('%i', 1234.56);
Output the value I gave it (1234.56)? I'm using Linux with basic LAMP installation.
Expected output is "1,234.56"
EDIT:
locale -a
returns the following list:
C
C.UTF-8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
POSIX
zh_CN.utf8
zh_SG.utf8
That's annoying. en_US.utf8 works just fine!