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 ? Quote 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/ Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.