I want to be able to retrieve the data on a certain site with the font size="6" I plan on doing this with the xml parser but so far have had no luck. This is my code, if anyone knows where my mistake is, it would be much appreciated.
Thanks
@$doc=new DOMDocument();
@$doc->loadHTML($html4);
$xml=simplexml_import_dom($doc); // just to make xpath more simple
$data=$xml->xpath('//font size=6');
$arr= array();
foreach ($data as $img) {
echo $img;
}