?php $number = 1234.56; / / english notation (default) $english_format_number = number_format($number); / / 1,234 / / French notation $nombre_format_francais = number_format($number, 2, ',',' '); / / 1 234,56 $number = 1234.5678; / / english notation without thousands seperator $english_format_number = number_format($number, 2, '.', ''); / / 1234.57?
?php $nombre = 1234.56; / / Notation anglaise (par d eacute;faut) $english_format_number = number_format($nombre); / / 1,234.56 / / Notation fran ccedil;aise $nombre_format_francais = number_format($nombre, 2, ',',' '); / / 1 234,56?