Important built-in functions for PHP learning

Source: Internet
Author: User

1. require_once () function

This function contains and executes the specified file during script execution, similar to the Require statement, except that if the code in the file is already contained, it will not be included again.

The require_once () function guarantees that, during script execution, for cases where the same file is included more than once, you want to make sure that it contains one time to avoid function redefinition, variable re-assignment, and so on.

As with the include () function, this function returns True if it executes successfully.

Also, we should note that the behavior of require_once () and include_once () may not be expected in a case-insensitive operating system like window.

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.