title | updated | permalink |
---|---|---|
What are Iterators in PHP and How to Use Them? |
August 20, 2016 |
/faq/object-oriented-programming/php-iterators/ |
An iterator is an object that enables a programmer to traverse a container. Various types of iterators are often provided via a container's interface.
People many times forget about underused and built in iterators in PHP's standard PHP library.
- PHP manual - The Iterator interface chapter in the PHP Manual.