2

I was wondering what does it mean in layman's terms to traverse php arrays

Knowledge Craving
  • 7,955
  • 13
  • 49
  • 92
HELP
  • 14,237
  • 22
  • 66
  • 100

2 Answers2

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