<?php
// Create DOM from URL or file
$html = file_get_html('http://www.google.com/');
// Find all images
foreach($html->find('img') as $element)
echo $element->src . '<br>';
// Find all links
foreach($html->find('a') as $element)
echo $element->href . '<br>';
?>
Fatal error: Uncaught Error: Call to undefined function file_get_html() in /in/JvLgN:3
Stack trace:
#0 {main}
thrown in /in/JvLgN on line 3
Process exited with code 255.