If the initialization process of a variable is complex but often used, what file does it usually save? How can this problem be solved?
Source: Internet
Author: User
If the initialization process of a variable is complex but often used, what file does it usually save? Is it a. inc. php file with the same name? Or what other files are saved ?, The variable you are talking about is whether the user shares it or not. I don't quite understand. Generally, I only save the class definition as a file ., If a variable is often used, it should be a constant. if the initialization process of a variable is complicated, but often used, what file does it usually save?
Is it a. inc. php file with the same name? Or what other files are saved?
------ Solution --------------------
The variable you are talking about is whether the user shares it or not.
I don't quite understand. Generally, I only save the class definition as a file.
------ Solution --------------------
The variable is often used, so it should be a constant. then get a file include.
------ Solution --------------------
We recommend that you learn about object-oriented programming.
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.