How to get only the result value when using google currency api with php?
<p>I'm using the "new" google currency calculator, and instead of the precedent version, now we have a form, with dropdown menus..etc, what i need is just to get the result value.</p>

<p>This is my simple php function :</p>

<pre><code>    // GOOGLE CURRENCY CONVERTER API
function converter_currency($amount, $from){
    $result = file_get_contents('https://www.google.com/finance/converter?a='.$amount.'&amp;from='.$from.'&amp;to=USD');

    print_r ($result);
    // echo gettype($result); &lt;== said that it's a string
}
  converter_currency(5, 'EUR'); //converts 5euros to USD
</code></pre>

<p>That returns a form ..ect with the result : <code>5 EUR = 5.4050 USD</code>
How to get only : <code>5.4050</code> ?</p>

<p>Thank you.</p>