title: How to remove $ and comma from form input using current php code?
body: <p>Here's sample of my input format</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script type="text/javascript" src="http://jquerypriceformat.com/js/jquery-1.9.1.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://jquerypriceformat.com/js/jquery.price_format.2.0.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://jquerypriceformat.com/js/ini.js"&gt;&lt;/script&gt;
  &lt;label for="example6"&gt;Currency:&lt;/label&gt;
  &lt;input id="example6" name="example6" value="" type="text"&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Mysql table type is set to :  <code>decimal(16,2)</code></p>
  
  <p>Here's my problem:</p>
  
  <p>For example:</p>
  
  <p>Input format:  <code>US$ 625,695,295.00</code></p>
  
  <p>Outout format: <code>625</code></p>
  
  <p>It means, it won't save into table as currency correct format, it won't save after comma into sql table. It should be something like this:  <code>625695295.00</code></p>
  
  <p>How to remove it those commas and dollar sign when data is posting to mysql table?</p>
  
  <p>Here's my post code:</p>
  
  <pre><code>$problem-&gt;setExample6($_POST["example6"]);
  $_POST["example6"] = $problem-&gt;getExample6();
  </code></pre>
  
  <p>Thanks in advance.</p>
  
  <p>SOLUTION: PROBLEM SOLVED!! SPECIAL THANKS TO  <a href="https://stackoverflow.com/users/4333555/chris85">chris85</a>
  Here we go:</p>
  
  <blockquote>
  <pre><code>   $problem-&gt;setExample6(str_replace(array(',', 'US$', ' '), '', $_POST["example6"]));
     $_POST["example6"] = $problem-&gt;getExample6();
  </code></pre>
  </blockquote>