Possible Duplicate:
How can I only get the alt attribute of the a p tag in PHP?
I have a the following HTML code:
<img src="test.png" alt="test1" />
<img src="test2.png" alt="test2" />
How to get the value of the alt
-attribute from these img
-tags ? Any ideas for implementing a function getAlt()
?