O'Reilly logo

Mastering the SPL Library by Joshua Thijssen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Miscellaneous Functionality

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.

Miscellaneous Functions

Below is a list of miscellaneous functions.

class_implements()

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required