SPL---Spl_autoload_register

Source: Internet
Author: User
Tags autoload spl
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.