ALIAS

nf()

ShortPHP reference for number_format().

Signature

number_format(float $num, int $decimals = 0, ?string $decimal_separator = ".", ?string $thousands_separator = ","): string

Example

nf(...);

PHP equivalent

number_format() is the canonical PHP function. ShortPHP provides nf() as the convenience alias.

Extension: Core

Official PHP manual ↗

Reference navigation

Previous: mbsub()

Next: odec()

Back to reference