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.
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.