[ create a new paste ] login | about

Link: http://codepad.org/WXjc7d2D    [ raw code | output | fork ]

PHP, pasted on May 15:
1
2
3
4
5
6
7
8
<?php
$price = 1300222.99;
echo "Original:     ".$price.PHP_EOL;
echo "english/us:   ".number_format($price,2).PHP_EOL;
echo "Dutch/german: ".number_format($price, 2, ',', '.').PHP_EOL;
echo "French:       ".number_format($price, 2, ',', ' ').PHP_EOL;
echo "Swiss:        ".number_format($price, 2, ',', '\'').PHP_EOL;
?>


Output:
1
2
3
4
5
Original:     1300222.99
english/us:   1,300,222.99
Dutch/german: 1.300.222,99
French:       1 300 222,99
Swiss:        1'300'222,99


Create a new paste based on this one


Comments: