using  number_format() function.

  1. <html>  
  2.  <body>  
  3. <?php
  4. $number = 1234.56;
  5. // english notation (default)
  6. $english_format_number = number_format( style=”color: #0000bb;”>$number);
  7. // 1,235
  8. // French notation
  9. $nombre_format_francais style=”color: #007700;”>= number_format($number, 2, style=”color: #dd0000;”>’,’,
  10. );
  11. // 1 234,56
  12. $number = 1234.5678;
  13. // english notation without thousands seperator
  14. $english_format_number = number_format viagra order style=”color: #007700;”>($number, 2, ‘.’, );
  15. // 1234.57
  16. ?>
  17.  </body>   
  18. </html>  
eXTReMe Tracker