|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-04-06 22:02 UTC] nexact at gmail dot com
Description:
------------
money_format(); is not outputting in the correct format.
Reproduce code:
---------------
<? echo money_format('%=*+#10.2n','-5.36'); ?>
Expected result:
----------------
(*********5.36)
Actual result:
--------------
-*********5.36
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 17:00:01 2025 UTC |
money_format() function uses strfmon (man strfmon), which in turn depends on your current locale and this particular issue means that post likely your locale is broken. This is what I get on Linux: #php -r 'echo money_format("%=*+#10.2n\n","-5.36");' -*********5.36 Sorry, I doubt that we can do something about it.