|
-
Jul 24th, 2005, 09:46 PM
#1
Thread Starter
Fanatic Member
money_format gives error
Having a code like
PHP Code:
<?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?
Last edited by nebulom; Jul 25th, 2005 at 01:05 AM.
-
Jul 24th, 2005, 09:58 PM
#2
Re: money_format gives error
 Originally Posted by php documentation
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.
-
Jul 24th, 2005, 10:00 PM
#3
Re: money_format gives error
use sprintf or vsprintf functions instead.
-
Jul 25th, 2005, 12:43 AM
#4
Thread Starter
Fanatic Member
Re: money_format gives error
-
Jul 25th, 2005, 12:50 AM
#5
Re: money_format gives error
if you read the dox.. it says there it is not properly implemented on windows platforms
-
Jul 25th, 2005, 01:03 AM
#6
Thread Starter
Fanatic Member
Re: money_format gives error
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.
Last edited by nebulom; Jul 25th, 2005 at 01:07 AM.
-
Jul 25th, 2005, 01:14 AM
#7
Re: money_format gives error
 Originally Posted by nebulom
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
and I guess you are using translator for all your posts?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|