Number Format Conversion in PHP

PHP code for number conversion

In many cases we need to display the integer, float numbers in human readable format. In PHP we have a direct option for converting the digital format numbers into human readable numbers. This can be accomplished by using number_format PHP function.
Example Code for converting numbers

number_format (1234.5678, 2, '.', ','); //output 1,234.56
number_format (1234.5678, 3, '.', ','); //output 1,234.567
number_format (1234.5678, 2, '', ','); //output 1,234567

Related Topic Convert Number Integer, Float to String in Java
How to Convert an Object to String in Java
Decimal to Binary Number Converter in Java Program
Java Program for Decimal to Hex converter
C Program to Convert Number to Word
PHP 2011   Privacy Policy  Terms of Service  Feedback