Code Snippets Php

conversions from Yahoo
//our currencies
$currency = array("Yen","US Dollars","German mark","french franc","Australian dollar");
//the various URLS for the currency conversions
$conv[0]=file('http://quote.yahoo.com/m5?a=1&s=GBP&t=JPY&c=0');
$conv[1]=file('http://quote.yahoo.com/m5?a=1&s=GBP&t=USD&c=0');
$conv[2]=file('http://quote.yahoo.com/m5?a=1&s=GBP&t=DEM&c=0');
$conv[3]=file('http://quote.yahoo.com/m5?a=1&s=GBP&t=FRF&c=0');
$conv[4]=file('http://quote.yahoo.com/m5?a=1&s=GBP&t=AUD&c=0');
//loop through results
for($i=0; $i{
$conv[$i] = join("",$conv[$i]);
//parse out the relevant information
$conv[$i] = ereg_replace(".*",'',$conv[$i]);
$conv[$i] = ereg_replace("
.*",'',$conv[$i]);
$conv[$i] = ereg_replace(".*",'',$conv[$i]);
$conv[$i] = ereg_replace(".*",'',$conv[$i]);
//display results
echo "1 Pound(£) = ".$conv[$i]." ".$currency[$i]."
\n";
}
?>