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
Post a Comment