To extract ![]()
from the page you can try something like:
$doc = new DOMDocument();
$doc->loadHTML("Foo
");
$xml = simplexml_import_dom($doc);
$images = $xml->xpath('//img');
foreach ($images as $img)
echo $img['src'] . ' ' . $img['alt'] . ' ' . $img['title'];
See doc for DOMDocument for more details.