etrader Posted February 17, 2011 Share Posted February 17, 2011 Imagine an html with the following structure <div class="item"> <div class="title"> <a class="title" href="http://www.domain.com/title.html">Title is here</a> </div> <div class="image"> <a href="http://www.domain.com/title.html"><img src=image.jpg /></a> </div> </div> How to make an array containing $title - $url - $image_url ? Link to comment https://forums.phpfreaks.com/topic/227982-how-to-parse-html-by-domdocument/ Share on other sites More sharing options...
ale8oneboy Posted February 17, 2011 Share Posted February 17, 2011 Take a look at PHP Simple HTML DOM Parser. http://simplehtmldom.sourceforge.net/ Link to comment https://forums.phpfreaks.com/topic/227982-how-to-parse-html-by-domdocument/#findComment-1175660 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.