Simple html dom get href value
I have an html page that looks a bit like this
I am trying to pull of the href's out of the big-div. I can get all the href's out of the whole page by using code like below.
But how do I get only the href's within the div "big-div". Edit: I think I got it. For those that care:
asked Jan 7, 2014 at 1:12
elgato75elgato75 571 gold badge2 silver badges6 bronze badges 2 The documentation is useful:
And then proceed to get the Edit: The above would be the general idea. I've never used Simple HTML DOM, so perhaps you need to tweak the syntax somewhat. Try:
or perhaps:
answered Jan 7, 2014 at 1:18
durrruttidurrrutti 1,0101 gold badge8 silver badges17 bronze badges 2 Quick flip - put this in your foreach
answered Jan 22, 2019 at 0:23
DropHitDropHit 1,62515 silver badges27 bronze badges Get, Set and Remove attributes
Magic attributes
Tips
|