PHP function to format the price – PHP May 2, 2011 Pramod T P Leave a comment <?php $number = 5030; echo number_format($number); // 5,030 ?>