PHP number_format() Function

The number_format() function is use to format a number with in groupe thousands.

Demo :



Type Number  

Example :

Example 1: Type No : 3063
Example 2: Type No : 10000000

Following code is used to formatting numerical number with commas if you need to take and use your website.


<?php
 $number_format_no =12;
 $result = number_format($number_format_no);
 echo $result;
?>

In the number_format() functions have used many arguments.which the firat argument name is float number.

Free Download Script :

If you need number_format() function demo code download from following link.

Download




Content