Click to See Complete Forum and Search --> : money_format gives error
nebulom
Jul 24th, 2005, 09:46 PM
Having a code like
<?php
$a = 1232322210.44;
setlocale (LC_MONETARY, 'en_US');
echo money_format ("%n", $a);
echo "\n";
echo money_format ("%i", $a);
echo "\n";
?>
gives an error like Fatal error: Call to undefined function money_format() in C:\Program Files\Apache Group\Apache2\htdocs\test\test.php on line 7. Am I missing something?
oceanebelle
Jul 24th, 2005, 09:58 PM
Note: The function money_format() is only defined if the system has strfmon capabilities. For example, Windows does not, so money_format() is undefined in Windows.
Yes I guess you are. :D
oceanebelle
Jul 24th, 2005, 10:00 PM
use sprintf or vsprintf functions instead. :D
nebulom
Jul 25th, 2005, 12:43 AM
What about http://ph.php.net/money_format?
oceanebelle
Jul 25th, 2005, 12:50 AM
if you read the dox.. it says there it is not properly implemented on windows platforms :D
nebulom
Jul 25th, 2005, 01:03 AM
Dumb me. Hehe. Sori for bothers. I guess I should read everything. One problem though, I hardly understand English. I guess this is resolved. Thanks again.
Edit: Oh, php documentation is a vbf user now. I didn't know that. He/She originally posted a quote. Hehe.
oceanebelle
Jul 25th, 2005, 01:14 AM
Dumb me. Hehe. Sori for bothers. I guess I should read everything. One problem though, I hardly understand English. I guess this is resolved. Thanks again.
Edit: Oh, php documentation is a vbf user now. I didn't know that. He/She originally posted a quote. Hehe.
I always see BOL being quoted so what's the difference with php documentation.. eheheheh :lol:
and I guess you are using translator for all your posts? :thumb:
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.