If you would like to find out all images given in any php pages, then don’t worry i am here tell you all a very simple way for do this.
1. First you have need to store the page content in a single PHP variable like given below :
<?php // $html is the PHP variable $html='<div> <div><img src="http://0.gravatar.com/avatar/cd67755871cbd4804e8657aafd85862d%3Fsize%3D400px" alt="Raghunath Website Freelancer" /></div> <div><img src="http://cslewisinstitute.org/webfm_send/2043" alt="Raghunath Website Developer" /></div> </div>'; ?>
2. Now we are going to find out all images from $html (PHP) variable :
<?php preg_match_all('/<img[^>]+>/i',$description, $result); //we have now find all images and store these all image in an array $result
print_r($result); //print all images ?>