Click here for number_format function details.
For information on retrieving the locale's formatting values by calling the localeconv function, click here.