title: php converting formatted int to int
body: <p>Sorry for asking this but, I cant found a solution that will get this -> 7,000 to 7000.</p>
  
  <p>I'm using intval() and number_format() but it will just give me 7 not 7000.</p>
  
  <pre><code>$myVal = '7,000';
  echo intval($myVal);
  </code></pre>
  
  <p>this returns 7</p>
  
  <p>same goes with number_format()</p>
  
  <p>what am I doing wrong?</p>