João Cândido de Souza Neto wrote:
I´m having some troubles with the number_format function.

When i run a number_format("3000",2,",",".") if returns correctly, but when i try to run number_format("300",2,",",".") it returns the value formatted but with two spaces before.

Anyone knows how can i avoid this?

Look at your other code around the functions. The number_format is not outputting any spaces...

[EMAIL PROTECTED]:~$ php tmp.php
'3.000,00'
'300,00'


Another example of where a simple test script would have moved you closer to a solution without involving the rest of us.

-Stut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to