This question has already been answered:
I found only how to use standard separators, but I didn’t manage to replace commas with spaces. Here is a sample code.
<?php $a = 999; $b = 10999*$a; echo number_format($b); ?>
This question has already been answered:
I found only how to use standard separators, but I didn’t manage to replace commas with spaces. Here is a sample code.
<?php $a = 999; $b = 10999*$a; echo number_format($b); ?>
A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .
So:
<?php $a = 999; $b = 10999*$a; echo number_format($b, 2, ',', ' '); ?>
Source: https://ru.stackoverflow.com/questions/548396/
All Articles