Re: Thousands Separator
| From: | Shawn McKenzie | Date: | Fri, 16 Jan 2015 19:33:43 +0000 |
| Subject: | Re: Thousands Separator | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324256@lists.php.net to get a copy of this message | ||
On Fri, Jan 16, 2015 at 12:49 PM, Jennifer <jennifer@superiorshelving.com>
wrote:
> I hate to ask what seems to be a simple question but, does PHP
> have a thousands separator for large numbers in constants or variables? In
> Perl, you can use the underscore, e.g. $num = '123_456_789', but that
> doesn't work in PHP.
>
> I can't find an answer anywhere, so I hope the answer isn't "no".
> :\
>
> Thank you,
> Jenni
>
> Superior Shelving Systems::::....
> The (Storage|Office|Home|Warehouse) Shelving Specialists
> Since 1984
>
> Wire LAN Shelving:
>
> https://www.superiorshelving.com/mfg/nexel/pages/wire-shelving-chrome.php
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Not in that way. You would need number_format()
http://php.net/number_format