What would be the most efficient way to select every nth item from a large array? Is there a \'smart\' way to do it or is looping the only way?
Some points to c
You could use array_keys to work only on the array keys.
array_keys
$keys = array_keys($array); for ($i=0, $n=min(count($keys), 130000); $i<$n; $i += 205) { $result[] = $array[$keys[$i]]; }