title: Getting node's text in PHP DOM
body: <p>How could I extract the string "text" from this markup using the PHP DOM?</p>
  
  <pre><code>&lt;div&gt;&lt;span&gt;notthis&lt;/span&gt;text&lt;/div&gt;
  </code></pre>
  
  <p><code>$div-&gt;nodeValue</code> includes "notthis"</p>