hey guy,i'm a newbie in php and need some help from you guy in this preg_match_all function.
i would like to grab the multiple share data in this webpage for change,last trade,volume,trade time,open and so on.
this code only able to grab a single line of data, but not multiple as i mention above.
anyone can provide some guidance using this function?
<?php
$homepage = file_get_contents("http://finance.yahoo.com/q/ta?s=4707.KL+Basic+Tech.+Analysis&t=3m") ;
if ($homepage === false)
{ echo "content not found";
}
else {
preg_match("/<span id=\"yfs_l10_4707.kl\">(.*)<\/span>/", $homepage, $array) ;
$nestle = $array[1];
}
?>