source code:
<div id="point">9</div>
<div id="point">REAL POINT: 9</div>
and parser code:
$point = $html->find('div[id=point]');
so, when you write $point[0] it will be first, and the other will be second.
But sometimes i need to make an algorithm like this: "find the divs with id point and must begin with REAL POINT: "
We can find
$point = $html->find('div[id=point]')->innertext=' REAL POINT:';
But that finds only divs include ' REAL POINT:'
But i have to find divs innertext begin 'REAL POINT:'
How can i find?
<div class="point">instead. Even better<div class="point">and<div class="realpoint">.