Wednesday, October 7, 2015

How to put decimal or format number in php

How to put decimal after number. Use number_format() function. try this code: $num=365; echo number_format($num,2); thumbnail 1 summary
How to put decimal after number.

Use number_format() function.

try this code:
   $num=365;
   echo number_format($num,2);

No comments

Post a Comment