Answers for "php get thousand with decimal"

PHP
1

php number format 2 decimal no comma

number_format(1000.5, 2, '.', '');
Posted by: Guest on June-10-2021
0

Numbers Formater Decimal & Thousand Separator PHP

<?php

$number = 1234.56;

// english notation (default)
$english_format_number = number_format($number);
// 1,235

// French notation
$nombre_format_francais = number_format($number, 2, ',', ' '); 
//2 digits after decimal, decimal separator:',' and thousand separator: ' '
// 1 234,56

$number = 1234.5678;

// english notation without thousands separator
$english_format_number = number_format($number, 2, '.', '');
// 1234.57

?>
Posted by: Guest on February-20-2022

Code answers related to "php get thousand with decimal"

Browse Popular Code Answers by Language