|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-13 19:01 UTC] iliaa@php.net
[2004-06-21 01:00 UTC] php-bugs at lists dot php dot net
[2005-06-13 22:53 UTC] steve at jigstop dot com
[2005-07-13 21:10 UTC] brandon at axonmedia dot ca
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 16 09:00:01 2025 UTC |
Description: ------------ The combination of setlocale and money_format worked for me in php 4.3.4. Upgrading to php 4.3.6 and changing servers seems to have broken setlocale and/or money_format. Reproduce code: --------------- <?php $item="987654.321"; setlocale(LC_MONETARY, 'en_US'); print money_format('%.2n',$item); # prints 987654.321 ?> Expected result: ---------------- $987,654.32 Actual result: -------------- 987654.32