I have source code :
<li class="parent">
<a href="#">F</a>
<ul>
<li>xx</li>
<li>xx</li>
......
</ul>
</li>
I want get plaintext of tag li:nth-child(1) by simple_html_dom :
$html->find("li.parent li:nth-child(1)")
not
$html->find("li.parent li",0);
atag you have to use this line of code$html->find("li.parent a")li:nth-child(1)atag else you must loop over the result ;)