Brief introduction
Registers a function into the SPL __autoload function queue. If the functions in the queue have not been activated, activate them.
If you have implemented the __autoload () function in your program, it must be explicitly registered in the __autoload () queue. Because
The Spl_autoload_register () function will Zend
The __autoload () function in engine is substituted for spl_autoload () or Spl_autoload_call ().
If more than one autoload function is required, spl_autoload_register () satisfies such requirements. It actually creates the AutoLoad
The queue of functions, executed one at a time in the order defined. In contrast, __autoload () can only be defined once. (because there is too little information on the Internet, so this is the official document translation) to implement the directory structure
Main class
classes to introduce (the methods for these classes are the same)
Run Results