|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-06-15 21:16 UTC] hholzgra@php.net
[2008-06-23 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 03:00:01 2025 UTC |
Description: ------------ money_format trims the negative symbol for certain locales. For danish, this means that the string "kr -1,00" is trimmed to "1,00" if the "!" modifier is given, trimming more than just the currency symbol. Reproduce code: --------------- setlocale(LC_ALL, 'da_DK', 'danish'); echo money_format('%!n', -1); Expected result: ---------------- -1,00 Actual result: -------------- 1,00