Jump to content

html dom parsing


Vytas

Recommended Posts

Hello,

Let's say, i have:

<div id="main">

    <div id="first"><img href="asd.jpg" /></div>

    <div id="second"><p>asd</p></div>

</div>

 

And i want to get the value of div with id "first", how can this be done with DOMDocument? Or would it be easier done with something else? Could you give an example?

Link to comment
https://forums.phpfreaks.com/topic/183301-html-dom-parsing/
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.