title: php to find the content of a div
body: <p>I want to execute some code if a div has an image inside, but can't correctly complete the first line<br>
  (I think other lines are ok):  </p>
  
  <pre><code>$page = index.php; // should be my homepage
  $content = $page-&gt;find('div[id=sky]', 0)-&gt;innertext;
  if($content == '&lt;img src="img/water.png"&gt;'){
  //do something
  }
  </code></pre>