Error when get src from first image using php?
<p>I have a sample code:</p>

<pre><code>$content = 'I have a image &lt;img border="0" alt="581.jpg - 58.03 KB" src="581.jpg"&gt;';
</code></pre>

<p>And php </p>

<pre><code>preg_match('/&lt;img.+src=[\'"](?P&lt;src&gt;.+)[\'"].*&gt;/i', $content, $image);
echo $image[0];
</code></pre>

<p>Result is: <code>581.jpg" border="0" alt="581.jpg -</code> , How to fix it ?</p>
