Looping through elements of PHP array using iterator

First of all iterator is initialized with getIterator() method over an array.

Main of the advantages of using iterator over looping through all of the elements of an array is lower memory consumption.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator