I basically need something inside a foreach loop that will skip over the first 10 iterations of the array.
foreach($aSubs as $aSub){
if($iStart > '0')
//Skip first $iStart iterations. Start at the next one
}
Thanks
Start a counter and use continue
to skip the first ten loops:
$counter = 0 ;
foreach($aSubs as $aSub) {
if($counter++ < 10) continue ;
// Loop code
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With