I want to skip some records in a foreach loop.
For example, there are 68 records in the loop. How can I skip 20 records and start from record #21?
$i = 0; foreach ($query) { if ($i++ < 20) continue; /* php code to execute if record 21+ */ }