PHP Predefined Interfaces and Classes
PHP provided some predefined interfaces and classes to implement classes and interfaces with some predefined awesome functions & concepts.
There are the list of predefined interfaces and classes, to read complete information follow this list:
-
Traversable - Interface to detect if a class is traversable using foreach.
-
Iterator - Interface for external iterators or objects that can be iterated themselves internally.
-
IteratorAggregate - Interface to create an external Iterator.
-
Throwable - Throwable is the base interface for any object that can be thrown via a throw statement.
-
ArrayAccess - Interface to provide accessing objects as arrays.
-
Serializable - Interface for customized serializing.
-
Closure - Class used to represent anonymous functions.
-
Generator - Generator objects are returned from generators.