title: How to use Simple HTML Dom to get text next to image element?
body: <p>I am using Simple HTML Dom parser to get a text that next to img tag from an HTML string like:</p>
  <p><strong>HTML</strong></p>
  <pre><code>&lt;tr&gt;                                  
    &lt;td&gt;
      &lt;img alt=&quot;Checkbox checked, changed&quot; src=&quot;/Images/crd_pgm_RedlineCheckSelected.gif&quot;&gt;My TEXT HERE
    &lt;/td&gt;   
  &lt;/tr&gt;
  </code></pre>
  <p><strong>I tried writing the belo code:</strong></p>
  <pre><code>&lt;?php
  
    foreach($html-&gt;find('img') as $element) {
      $plantext = $element-&gt;next_sibling()-&gt;plaintext;
      echo $plantext;
    }
  
  ?&gt;
  </code></pre>
  <p>But it shows NULL everytime. How can I <strong>scrape</strong> this text?</p>