I was wondering what does it mean in layman's terms to traverse php arrays
Asked
Active
Viewed 883 times
2 Answers
4
To examine each element in turn, possibly performing an operation upon it.

Ignacio Vazquez-Abrams
- 776,304
- 153
- 1,341
- 1,358
4
To traverse a data structure (regardless of programming language or specific data structure) is to "go through it". That is, in order to for instance inspect each element, transform every second element, remove each odd looking element, print each element and so on, you need to traverse the elements.

aioobe
- 413,195
- 112
- 811
- 826