Price string to float
<p>I like to convert string with a price to a float value. The price comes from different languages and countries and can look like this:</p>

<pre><code> 1,00 €
 € 1.00
 1'000,00 EUR
 1 000.00$
 1,000.00$
 1.000,00 EURO
</code></pre>

<p>or whatever you can think of...</p>

<p>Not sure I got the full range of possibilities with my examples. I am also not sure if it is possible to make in international convert blindly, maybe I have to use a language code? So for the start Euro and Dollar would be enough.</p>

<p><code>floatval()</code> is kind of stupid so I need something more here. I think I should first remove all chars beside numbers, <code>,</code> and <code>.</code>. Then fix the <code>,</code> / <code>.</code> and use floatval finally.</p>

<p>Has someone done this before and can help me a little?</p>

<p>I would prefer a solution without regexp ;)</p>
