Getting node's text in PHP DOM

Viewed 44464

How could I extract the string "text" from this markup using the PHP DOM?

<div><span>notthis</span>text</div>

$div->nodeValue includes "notthis"

2 Answers
Related