title: How to get alt in image url?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8256189/how-can-i-only-get-the-alt-attribute-of-the-a-p-tag-in-php">How can I only get the alt attribute of the a p tag in PHP?</a>  </p>
  </blockquote>
  
  
  
  <p>I have a the following HTML code:</p>
  
  <pre><code>&lt;img src="test.png" alt="test1" /&gt;
  &lt;img src="test2.png" alt="test2" /&gt;
  </code></pre>
  
  <p>How to get the value of the <code>alt</code>-attribute from these <code>img</code>-tags ? Any ideas for implementing a function <code>getAlt()</code>?</p>