I'm trying to read in a text file of 5000 lines. However I only want to get the first 10 lines of every 100 lines. So line 1-10, line 101 - 110, line 200 - 210 etc. I just cant figure out the logic to use.
$count = count(file($text))
for ($i = 0; $i < $count; $i++)
{
$test = fgets($f_text)
}