Ok. Wrong test. The method it's called like $sections = $html->find('section')->firstChild(); but I got the same an error because it's an Array. So there's not the same as the CSS pseudo selector rule :first-child How to use it to get the same result as CSS? TNX
Ok. Wrong test. The method it's called like $sections = $html->find('section')->firstChild(); but I got the same an error because it's an Array. So there's not the same as the CSS pseudo selector rule :first-child How to use it to get the same result as CSS? TNX
Ok. Wrong test. The method it's called like $sections = $html->find('section')->firstChild(); but I got the same an error because it's an Array. So there's not the same as the CSS pseudo selector rule :first-child How to use it to get the same result? TNX
Ok. Wrong test. The method it's called like $sections = $html->find('section')->firstChild(); but I got the same an error because it's an Array. So there's not the same as the CSS pseudo selector rule first-child
Sorry, wrong goal. Close this. The correct answer it's here: https://sourceforge.net/p/simplehtmldom/support-requests/63/
Get the elements of the upper level like with CSS pseudo selector :first-child
Find first child element like CSS does not respect order