title: How to replace dot with comma in price format in php
body: <p>I have a price format like <strong>1.100.000</strong> Now I want to replace all dots with comma so it should look like this- <strong>1,100,000</strong>. To achieve this I tried this code-</p>
  
  <pre><code>&lt;?php
  $number=1.100.000;
  $number=str_replace('.',',',$number);
  ?&gt;
  </code></pre>
  
  <p>But it is not working. Can any one help.?</p>