PHP中文网2017-04-18 10:45:42
Map does not implement the Collection interface
Collection means that this is a collection, that is, the interface of the collection is defined
Iterator is the interface for traversing collections
To reduce coupling. Iterator also needs to be reused as a component, not just used in the Collection interface.