when i do this:
var_dump(format_currency('1004.569'));
I get:
string ‘ 1.004,56’ (length=10)
Notice that there is a space before the 1.
Any idea?
sf 1.4.
Javi
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The space is where currency symbol belongs. This is because you haven’t set the users default culture. If you pass “usd” as the second parameter you should get $1.004,56.