title: Number format in PHP
body: <p>I want to display price in my front page. But the format of the number required is,</p>
  
  <ul>
  <li>Entered price: 10000 Display: 10,000</li>
  <li>Entered price: 10000.10 Display: 10,000.1</li>
  <li>Entered price: 10000.01 Display: 10,000.01</li>
  </ul>
  
  <p>if I am using the following code</p>
  
  <pre><code>echo  number_format ($price,2,'.',',');
  </code></pre>
  
  <p>But through this the result is displayed in this manner.<br>
  <strong>Entered price: 10000 Display: 10,000.00</strong></p>
  
  <p>Please help me to solve this problem</p>