Jump to content

comma separator in numbers

Recommended Posts

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) . "


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.