Answers for "number_format( );"

PHP
1

php number_format

$num = 12345.6789;
echo number_format($num, 2, '.', '') //12345.67
echo number_format($num, 3, ',', '.') //12.345,678
Posted by: Guest on August-27-2021
0

number_format

number_format(
    float $num,
    int $decimals = 0,
    ?string $decimal_separator = ".",
    ?string $thousands_separator = ","
): string
Posted by: Guest on January-11-2022

Browse Popular Code Answers by Language