Voting

: min(nine, four)?
(Example: nine)

The Note You're Voting On

Klaus
15 years ago
If you recursively load several classes inside an autoload function (or mix manual loading and autoloading), be aware that class_exists() (as well as get_declared_classes()) does not know about classes previously loaded during the *current* autoload invocation.

Apparently, the internal list of declared classes is only updated after the autoload function is completed.

<< Back to user notes page

To Top