newbiephp2020 Posted September 16, 2020 Share Posted September 16, 2020 Hi Guys, How do i put a comma separator after a thousand ? Example if $grand28 was equal to 1234.00 how do i get it to read 1,234.00 here is my code " . sprintf("%.2f", $grand28) . " Quote Link to comment Share on other sites More sharing options...
requinix Posted September 16, 2020 Share Posted September 16, 2020 Use number_format. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.