hey, guys, why does this code keep output ArrayArrayArray instead of Dec 28 for $data[0], , Dec 27 for $data[7] and so on. i would like to output all the date get from that URL, but my code failed.
<?php
$data = array();
require_once("simple_html_dom.php");
$html=file_get_html("http://finance.yahoo.com/q/hp?s=4707.KL+Historical+Prices");
foreach($html->find('td[class=yfnc_tabledata1]') as $e)
{ $e->innertext;
$data[] = array($e);
}
echo $data[0];
echo $data[7];
echo $data[14];
// you can output the value of $e using echo $e->innertext inside foreach loop
?>