PHP DOMDocument get text between two SETS of tags
问题 Is there a way to use Xpath to parse text between two SETS of tags? For example, see example: <div class="par"> <p class="pp"> <span class="dv">1 </span>Blah blah blah blah. <span class="dv">2 </span> Yada yada yada yada. <span class="dv">3 </span>Foo foo foo foo. </p> </div> <div class="par"> <p class="pp"> <span class="dv">4 </span>Hmm hmm hmm hmm. </p> </div> I want to parse to get an array like below by getting the text between the sets of SPAN tags: array[0] = "Blah blah blah blah.";