An iterator is a behavioral design pattern in PHP that enables the sequential traversal of a complex data structure without revealing its underlying features. Clients can use the iterator to go over elements from various collections in a comparable way by using a single iterator interface.