title: how to get the image names from html using php
body: <p>php for get all image tags using</p>
  
  <pre><code>$html='&lt;a herf="http://www.google.com"&gt;test&lt;/a&gt;&lt;/br&gt;
         &lt;p&gt;&lt;img src="./../../src/image1.png"/&gt;&lt;/p&gt;
         &lt;a href="example.mpeg" title="Download movie"&gt;film name&lt;/a&gt;
         &lt;img border="0" src="/images/image1.jpg" alt="Image" /&gt;
         &lt;img border="0" src="/images/image2.jpg" alt="Image"/&gt;
         &lt;img border="0" src="/images/image3.jpg" /&gt;';
  
  preg_match_all('/&lt;img[^&gt;]+&gt;/i',$html, $imageTags);  
  $string=join(PHP_EOL,$imageTags[0]);
  // echo '&lt;xmp&gt;'. $string .'&lt;/xmp&gt;';
  </code></pre>
  
  <p>after that how to get image names from this images tags?
  like, image1.jpg</p>