Mega Code Archive
How to display stock quotes on your website using Yahoo quotes
symbol = $array[0];
$this->last = $array[1];
$this->date = $array[2];
$this->time = $array[3];
$this->change = $array[4];
$this->open = $array[5];
$this->high = $array[6];
$this->low = $array[7];
$this->volume = $array[8];
}
}
}
$quote = new yahoo;
$quote->get_stock_quote("MSFT");
echo ("$quote->symbol
");
echo ("$quote->time
");
echo ("$quote->date
");
echo ("$quote->last
");
echo ("$quote->change
");
echo ("$quote->high
");
echo ("$quote->low
");
?>