for example I could have a very large file like this
....
<span id="someId">100</span>
....
And I simply would like to extract the number between the tag which in this case is 100. The number is not know and changes from file to another.
Here is the code I wrote so far. I made several trials with strstr and strpos but failed.
Code: Select all
$file = "file.html";
$handle = fopen($file, "r");
$input = fread($handle, filesize($file));
fclose($handle);