grabing data from url
<p>i have a task - i must grab some data from the URL. the link is <a href="http://cba.am" rel="nofollow">http://cba.am</a>.
the data, i want to take, are in the some table, and i have the only one identifier, to reach my wanted data, it's the word "usd", which writes in that table(html)!
i've written the following script, and it works! but i never heard how more experienced programers do such things, so i want to hear your comments.</p>

<hr>

<p>here is script</p>

<pre><code>&lt;?php
    $str = file_get_contents("http://cba.am/");
    $key_usd = "USD";
    $sourse_usd_1 = explode($key_usd,$str);
    $usd1 = $sourse_usd_1[2];
    $sourse_usd_2=explode("&gt;",$usd1);
    $usd2 = $sourse_usd_2[4];
    $sourse_usd_3=explode("&lt;",$usd2);
    $usd = $sourse_usd_3[0];
?&gt;
</code></pre>

<p>sorry for poor english:)</p>
