Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在php中,为什么人们有时会有类似的东西
参数混合 $value
作为他们代码中的注释(通常在面向对象的 PHP 中找到)?你什么时候应该自己写,你应该如何使用它?谢谢!
IDE 使用它来自动生成工具提示和文档,通常基于Javadoc。
它是为与文档生成工具和 IDE 自动完成一起使用而编写的。
mixed意味着它可以接受参数的多种数据类型。
mixed
这是一种格式化注释的标准化方式。你可以在这里阅读更多关于它的信息:http ://www.phpdoc.org/about