The SPL is not only a library of iterators, interfaces and data structures. There is plenty of other functionality available in the SPL that can help with your daily work. Since they are not part of any of the above classes, they are provided as “miscellaneous” functionality inside the SPL.
Below is a list of miscellaneous functions.
class_implements() is a generic function to return ALL the interfaces that the current object has implemented. It will return the interfaces in order of implementation, so the last entry is the earliest interface implemented by either itself or a parent class.
You can either feed it an object, or a string with a class name. The second argument can let ...