Following my post on getting links on a website, I thought I’ll also show you how to use those functions to get all the images on a website.

  $url = "http://www.phpdeveloping.co.za/";
  $html = file_get_html($url);
  if ($images = $html->find('img'))
  {
    foreach($images as $image)
    {
      echo $image->src."\r\n";
    }
  }

You can see how this makes your life a little bit easier when you compare it to the function I always use.