I used "foreach" to traverse a large 2d array.
Then I needed to "array_slice" out new arrays when the requirements changed.
This kept my foreach code intact.
The thing is array_slice takes an immense amount of time, espeially when the slice is deeper into the original array.
How can I traverse a section of an array
simply by moving to the new start key, then traverse from there
till the new end key - without "array_slicing".
I'd appreciate your help and time - Meir
Then I needed to "array_slice" out new arrays when the requirements changed.
This kept my foreach code intact.
The thing is array_slice takes an immense amount of time, espeially when the slice is deeper into the original array.
How can I traverse a section of an array
simply by moving to the new start key, then traverse from there
till the new end key - without "array_slicing".
I'd appreciate your help and time - Meir