I have a views counter on each post. When it reaches for example 1000, it adds a dot as the thousand separator, the result is 1.000. This is odd in my language, I should have a space as separator or nothing.
How can I change that?!
I have a views counter on each post. When it reaches for example 1000, it adds a dot as the thousand separator, the result is 1.000. This is odd in my language, I should have a space as separator or nothing.
How can I change that?!
You must be logged in to post a comment.
Use
number_format_i18n( $number )
. It will format the number with respect to the current blogâs language setting. It is a wrapper for PHPâs nativenumber_format()
.