Wednesday 23 September 2015

how to use number_format in php

<?php
$Price = 8945.234564;
$Price = number_format($UsedPrintPrice, 2);
print $Price;
?>

//: Output
8945.23

No comments:

Post a Comment