What does it mean in PHP to traverse arrays?

962 Views Asked by At

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

2

There are 2 best solutions below

0
On

To examine each element in turn, possibly performing an operation upon it.

0
On

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.