Appendix D. Environment Interfaces and Object Types

As discussed in the section “Using Object Reflection” in Chapter 8, several loaded extensions run in your PHP environment. The loaded extensions and PHP version determine the object interfaces and classes in your environment. The following functions are the keys to discovering what are available in your environment:

Function NameFunction Description
get_declared_interfaces()This function returns an array of declared interfaces in your environment.
get_declared_classes()This function returns an array of declared object types or classes in your environment.
get_loaded_extensions()This function returns an array of loaded extensions in your environment.

The array returns values that do not sort well ...

Get Oracle Database 10g Express Edition PHP Web Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.