Jump to content

How to parse html by DomDocument?


etrader

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.