From this image tag I need to take src
alone. How can I do this? Is there any predefined functions available?...
Answer
Load it into a DOM tree with loadHtml
and do an xpath on it, or directly traverse it if the structure is always the same.
See How to extract img src, title and alt from html using php?
No comments:
Post a Comment