Eric- Posted December 6, 2012 Share Posted December 6, 2012 Hello, I have a number 58899,7 or 58899 for example and i wants to format it to haveIn : 58899,7 (Input number)Out : 58 899,70In : 58899Out : 58 899,00 Which is the function to use ?I tried number_format and sprintf() without success. Can you help me ? Link to comment Share on other sites More sharing options...
Ingolme Posted December 6, 2012 Share Posted December 6, 2012 What's wrong with number_format()? Link to comment Share on other sites More sharing options...
kanchatchai Posted December 7, 2012 Share Posted December 7, 2012 http://php.net/manual/en/function.number-format.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now