number_format(ตัวเลข,จำนวนจุดทศนิยม,".",",");//เช่น$num = "1500";echo number_format($num,2,".",",");//ผลลัพท์1,500.00