php simplehtmldom issue
<p>I have a question on simplehtmldom.
how can I get a text of certain element that is a next_sibling of another element that contains a certain text?</p>

<p>for example:</p>

<p>I have html text as this:</p>

<pre><code>&lt;div&gt;
 &lt;table&gt;
  &lt;tr&gt;
   &lt;td&gt;prova&lt;/td&gt;
   &lt;td&gt;pippo&lt;/td&gt;
  &lt;/tr&gt;
 &lt;/table&gt;
&lt;/div&gt;
</code></pre>

<p>and I need to extract the text of second "td".Consider that I know that the value "prova" is a fixed value. I thought that i could use this code:</p>

<pre><code>echo $html-&gt;find("td:contains('prova')",0)-&gt;next_sibling();
</code></pre>

<p>but "contains" doesn't exists in simplehtmldom. 
How I can do that?</p>

<p>Thanks a lot</p>

<hr>

<p>thanks for your answer but I need to extract text of <strong>td</strong> next to <strong>td</strong> that contains the text "prova".</p>

<p>As example I need to extract the value "pippo" with a similar code</p>

<pre><code>echo $html-&gt;find("td:contains('prova')",0)-&gt;next_sibling()-&gt;innertext;
</code></pre>

<p>because I know the value of first column. Unfortunately the function <strong>contains</strong> doesn't exists in simplehtmldom.</p>

<p>The code</p>

<pre><code>echo $html-&gt;find("td:innertext('prova')",0)-&gt;next_sibling();
</code></pre>

<p>doesn't is the right way.</p>

<p>Do you have other suggestion?</p>

<p>Thanks</p>
