// 1 million coins is easier to read as 1,000,000
$value = "1000000";
// echo as 1,000,000
echo number_format($value, 0, '.', ',');
// echo as 1,000,000.00
echo number_format($value, 2, '.', ',');
// echo as 1:000:000
echo number_format($value, 0, '.', ':');