How do you format and output a number with leading zero's?

Answer Posted / mahidhar

syntax:number_format("number","decimal places","string
seperator","string thousands seperator");

Example:number_format('1000',2,'.','')

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between single-quoted and double-quoted strings in php?

772


How to download file in php?

761


What does the function get_magic_quotes_gpc() means?

697


Is php worth learning in 2019?

704


Is php better than java?

745


How do I stop a php script?

711


What is php routing?

704


Explain what does $_files means?

773


i m a B.E,passed out few yrs bak failed to find good job due to less marks now thinkin of a career as PHP developer. is it a lucarative field and wat r career prospects; hv heard dat initial salary is very less bout 6k also most jobs r contrct jobs.pls guide me need ur valuable advice.pls hellppp!! thnx..

1861


List some features of php that are deprecated in php7?

660


Is laravel an oop?

692


Is php harder than javascript?

682


Is php a programming language?

769


How many types of inheritances used in php and how we achieve it.

695


What is array and function?

780