Skip to content

Glossary: PHP Basics

number_format()

Also written: number_format

A function that turns a number into a string with a set number of decimals and commas between thousands. Use it whenever you show money.

Where the book teaches it

Related terms

round()float