KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Possible Duplicate: How to extract img src, title and alt from html using php? Hi, I have found solution to get first image from string: preg_match('~<img[^>]*src\s?=\s?[\'"]([^\'"]*)~i',$string, $matches); But I can't manage to get all images from string. One more thing... If image contains alternative text ( alt attribute) how to get it too and save to another variable? Thanks in advance, Ilija
Tags (comma-separated)
Save Edits
Cancel