In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to use php param". Friends who are interested might as well take a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn how to use php param.
Param in php has no special meaning and is usually used to document in comments, such as "/ * * @ param string $some* @ param array $some2* @ return void * /".
This article operating environment: Windows7 system, PHP7.1 version, Dell G3 computer.
What does php param mean?
Specific problem description:
What does php @ param mean in a class?
What does @ param mean when creating a class? As far as I know, it is used to tell the script what type of data type the variable is and what type of value the function returns, right?
For example:
/ * * @ param string $some * @ param array $some2 * @ return void * /
Isn't there any other way to do this? I'm thinking about something like void function () {...} or something like that. For variables may (int) $test
Answer:
@ param has no special meaning in PHP and is usually used to document in comments. The example you provide illustrates this point.
If you use the documentation tool, it searches for @ param's code. , @ summary, and other similar values (depending on the complexity of the tool) to automatically generate well-formed documents for the code.
At this point, I believe you have a deeper understanding of "how to use php param". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.