title: Regex & PHP - isolate src attribute from img tag
body: <p>With PHP, how can I isolate the contents of the src attribute from $foo? The end result I'm looking for would give me just "<a href="http://example.com/img/image.jpg" rel="noreferrer">http://example.com/img/image.jpg</a>"</p>
  
  <pre><code>$foo = '&lt;img class="foo bar test" title="test image" src="http://example.com/img/image.jpg" alt="test image" width="100" height="100" /&gt;';
  </code></pre>