What is the role of @ property in php? I found that the following code can also be used in the class after I declare the property with @ property! What is the difference between adminName1 and adminName2? Is it generally stated that all attributes use @ property? & Lt ;? Php/** & nbsp; * @ role of @ property in propertystringadmin php?
I found that the following code can also be used in the class after I declare the property with @ property! What is the difference between adminName1 and adminName2? Is it generally stated that all attributes use @ property?
------ Solution --------------------
Didn't you see that he was in the comment?
@ Property string adminName1
Indicates that the property adminName1 is a string.
This is just to help understand the instructions of the program
------ Solution --------------------
You can follow the rules. Where is the code from?
------ Solution --------------------
I have already said it is to help understand the instructions of the program.
Change like you
/**
* @ Property string adminName1
*/
There is no meaning to explain. On the contrary, there will be misunderstandings.
Clearly, he said there was an adminName1 attribute. Why didn't I see it? Only adminName2 is displayed. do you want to define an adminName1?
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