[Solved] Format number without decimal in php


Just pass zero to the second parameter, which is the number of decimal places:

number_format(123456789, 0, '', ' ')

4

solved Format number without decimal in php