echo number_format("1000000")."
"; echo number_format("1000000",2)."
"; echo number_format("1000000",2,",","."); 1,000,000 1,000,000.00 1.000.000,00