");
$xml->symbol = $matches[1];
$xml->name = $matches[2];
$xml->lastTrade->price = $matches[3];
$xml->lastTrade->date = $matches[4];
$xml->lastTrade->time = $matches[5];
$xml->change = $matches[6];
$xml->open = $matches[7];
$xml->high = $matches[8];
$xml->low = $matches[9];
$xml->volume = $matches[10];
return $xml->asXML();
}
// See http://www.gummy-stuff.org/Yahoo-data.htm
send_cached_xml("http://finance.yahoo.com/d/quotes.csv?f=snl1d1t1c1ohgv&e=.csv&s=" . urlencode($_GET['tag']), get_xml, 900);
?>