What is the use of PHP declaration global variables outside of the function

Source: Internet
Author: User
What's the use of PHP declaring a global variable outside of a function?
What's the use of PHP declaring a global variable outside of a function?

I see the WordPress wp-settings.php file in this paragraph:

/*
* These can ' t be directly globalized in version.php. When updating,
* we ' re including version.php from another install and don ' t want
* These values to be overridden if already set.
*/
Global $WP _version, $wp _db_version, $tinymce _version, $required _php_version, $required _mysql_version;
Require (Abspath. Wpinc. '/version.php ');


I don't understand, I beg to explain, thank you ^_^ have no effect
And I didn't see it in the wp-settings.php.
Global $WP _version, $wp _db_version, $tinymce _version, $required _php_version, $required _mysql_version;
Only
Require (Abspath. Wpinc. '/version.php '); no effect.
  • 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.