I have the following html from a curl scrap of a webpage:
<div id="box">
<br>
Your word(s):
<br>
<br>
functionally
<br>
<br>
<br>
I want what is after the third <br>: /html/body/div[2]/div/br[3] - that being functionality
@$itemCell = $xpath->query( "/html/body/div[2]/div/br[3]" );
$word = $itemCell->item( 0 );
return $word->nodeValue;
this does not return anything. If I back up to just /div I of course get the entire contents of box. How do I extract the word after the second <br>. My word is always going to be after the third <br>.
Seems so simple, yet it escapes me.