相关疑难解决方法(0)

PHP:评论标准

我需要在少量文件中评论大量信息,当我环顾谷歌并在这里时,我会继续找到匹配的结果coding standards,当我需要评论标准时.我的编码符合大多数编码标准,但在评论时则不然.

有人可以提供以下示例吗?

<?

    // beginning of file comments

    require( 'filename.php' ); // require or include, with filename

    public class Test { } // class without constructor

    public class Test // class with constructor, if different from above
    {
        public function __constructor() { } // constructor, no parameters

        public function __constructor(var1, var2) { } constructor, with parameters

        public function func1() { } // function, no parameters

        public function func2($var1, $var2) { } // function, with parameters

        public function …
Run Code Online (Sandbox Code Playgroud)

php comments coding-style

12
推荐指数
2
解决办法
3万
查看次数

标签 统计

coding-style ×1

comments ×1

php ×1