是否可以在不首先遍历数组的情况下设置PHP的内部数组指针.以下面的虚拟代码为例:
$array = range(1, 100); // Represents the array key $pointer = 66; set_array_pointer($pointer, $array); $nextValue = next($array); // Should return 68
php arrays
arrays ×1
php ×1