1Array
2(
3 [0] => 0
4 [1] => 0.16666666666667
5 [2] => 0.33333333333333
6 [3] => 0.5
7)
8
1
2<?php
3
4$number = 1234.56;
5
6// english notation (default)
7$english_format_number = number_format($number);
8// 1,235
9
10// French notation
11$nombre_format_francais = number_format($number, 2, ',', ' ');
12// 1 234,56
13
14$number = 1234.5678;
15
16// english notation without thousands separator
17$english_format_number = number_format($number, 2, '.', '');
18// 1234.57
19
20?>
21
22