How to get src="" from html image tag
<pre><code>$str = "html code here and img tag";
preg_match_all('~&lt;img ([^&gt;]+)&gt;~i', $str, $matches);
$images = array();
foreach ($matches[1] as $str) {
    preg_match_all('~([a-z]([a-z0-9]*)?)=("|\')(.*?)("|\')~is', $str, $pairs);
}
</code></pre>

<p>I can't get SRC from IMG, how to ideas ?</p>
