PHP Manual Summary (i)

Source: Internet
Author: User

One: Automatic loading

__autoload ():

Attention:

1:Spl_autoload_register () provides a more flexible way to implement automatic loading of classes. Therefore, it is no longer recommended to use the __autoload() function, which may be deprecated in later versions.

2: Before version 5.3.0, the exception thrown by the __autoload function cannot be caught by a catch statement block and can cause a fatal error. After 5.3.0+, the exception thrown by the __autoload function can be captured by a catch statement block, but a condition needs to be followed. If a custom exception is thrown, the corresponding custom exception class must exist. The __autoload function can automatically load custom exception classes recursively.

3: Automatically load the CLI interaction mode that is not available for PHP.

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.