What does it mean in PHP to traverse arrays?
I was wondering what does it mea开发者_如何学JAVAn in layman's terms to traverse php arrays
To examine each element in turn, possibly performing an operation upon it.
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.
精彩评论