title: Get img src with PHP
body: <p>I would like to get the SRC attribute into a variable in this example:</p>
  
  <pre><code>&lt;img border="0" src="/images/image.jpg" alt="Image" width="100" height="100" /&gt;
  </code></pre>
  
  <p>So for example - I would like to get a variable <code>$foo = "/images/image.jpg"</code>.
  Important! The src attribute will be <strong>dynamic</strong>, so it mustn't be hardcoded.
  Is there any quick and easy way to do this?</p>
  
  <p>Thanks!</p>
  
  <p>EDIT: The image will be a part of a huge string that is basically the content of a news story. So the image is just a part of that.</p>
  
  <p>EDIT2: There will be more images in this string, and I would only want to get the src of the first one. Is this possible?</p>