Skip to content Skip to sidebar Skip to footer

Fetching Div That Are Inside Unordered List And List Item With Simple Html Dom

How can i get DIV that are inside ul and li like the below codes what shows, there is alot of DIV inside a single li what method should i use? there is codes i have used below but

Solution 1:

You might want to use PHP DOM with xpath like in the example For selection, you can use "li.single-event .single-event__code". In this way you will get all the divs with the class "single-event__code" that are inside li elements.


Post a Comment for "Fetching Div That Are Inside Unordered List And List Item With Simple Html Dom"