I've got an HTML page which I fetch with PHP with file_get_contents.
On the HTML page I've got a list like this:
<div class="results">
<ul>
<li>Result 1</li>
<li>Result 2</li>
<li>Result 3</li>
<li>Result 4</li>
<li>Result 5</li>
<li>Result 6</li>
<li>Result 7</li>
</ul>
On the php file I use file_get_contents to put the html in a string. What I want is to search in the html on "Result 4". If found, I want to know in which list item (I want the output as a number).
Any ideas how to achieve this?