PHP keyword GLOBAL, what is the function?

Source: Internet
Author: User
What is the role of the PHP keyword GLOBAL? Share To: What is the role of the PHP keyword GLOBAL?
Share:
------ Solution --------------------
Http://www.baidu.com? Tn = sogouie_dg & ie = UTF-8 & bs = PHP % E5 % 85% B3 % E9 % 94% AE % E5 % AD % 97 GLOBAL & f = 8 & rsv_bp = 1 & wd = PHP + GLOBAL & rsv_sug3 = 1 & rsv_sug1 = 1 & rsv_sug4 = 49 & inputT = 352

These are clearer than I said.
------ Solution --------------------
Simply put, a variable has its function scope, that is, you declare a variable, which does not mean that you can use it anytime, anywhere. imagine, you are in a dark room without any doors or windows. your friends are outside the room, but you cannot directly talk to friends in the dark room, because you can't see your friends, you can use your smartphone to communicate with your friends through video, and you can directly talk to your friends, so global is the role of the smartphone in this example.

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.