I am writing a foreach that does not start at the 0th index but instead starts at the first index of my array. Is there any way to offset the loop\'s starting p
foreach
Keep it simple.
foreach ($arr as $k => $v) { if ($k < 1) continue; // your code here. }
See the continue control structure in the manual.