A few questions about php Basics but not found in the book I saw some code in many frameworks with two underscores in front, for example, & nbsp ;__ isset, & nbsp ;__ construct, etc, can I add two underscores before a UDF? What is the role of the two underlines? Another method is & nbsp; _ e & nbsp;. What is this ?? These are a few php basics that are not found in the book.
In many frameworks, some codes are prefixed with two underscores (_ isset, _ construct). can I add two underscores (_ construct) before a UDF? What is the role of the two underlines?
Another method is _ e. What is this ??
These are not in basic programming, right? I have never seen it in the basic tutorial ??
How can you teach me?
------ Solution --------------------
Search: php magic
------ Solution --------------------
The addition of underscores does not actually affect beginners, but does not allow them to be named like this to avoid conflicts with their own methods.
------ Solution --------------------
The above two are magic methods, and the following one should be Framework-defined methods.
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.