Find Stacked Div Class With Simple HTML DOM Parser
I am using PHP Simple HTML DOM Parser and there is a section in the html page with the following source:
Solution 1:
For targeting an element with multiple classes, use dot (.
) as the separator between classes. Spaces indicate a parent -> child relationship.
So, in your example, you would need:
List item $html->find('.box-content.padding-top-1.padding-bottom-1.font-size-3'));
Solution 2:
Or you can try this:
List item $html->find('div[class=box-content padding-top-1 padding-bottom-1 font-size-3]');
Post a Comment for "Find Stacked Div Class With Simple HTML DOM Parser"