Parse formatted Money String into Number
<p>Is there a built in function to parse an integer out of a string containing other non-numeric function (JavaScript's <code>parseInt</code>). I want to parse money-related strings such as <code>$100</code>, <code>£1000.00</code> or <code>$10,000</code> into integers (<code>100</code>, <code>1000</code> and <code>10000</code> respectively). I was wondering if there's a built in PHP function, or whether I have to roll my own?</p>

<p>If I <em>do</em> have to write my own, is there another built in function to replace all non-numeric characters, or should I just <code>str_replace()</code>?</p>
