I\'m embarrassed to ask this and it\'s most likely a duplicate, but my google results are coming up short (im searching incorrectly I guess) and such a basic question is infuria
If you want to access every N-th element:
$n = 3; foreach (array_keys($arr) as $i => $key) { if (($i+1) % $n) { continue; } $value = $arr[$key]; }