What does a php multi-line comment start with?

(*-*)浩
Release: 2023-02-25 20:42:01
Original
7259 people have browsed it

PHP comment specifications

What does a php multi-line comment start with?

Comments are very important in the process of writing code. Good comments can make your code readable. Easier, be sure to pay attention to the specification of comments when writing code.

PHP multi-line comments (Recommended learning: PHP video tutorial)

PHP multi-line comment symbols: /* */

PHP multi-line comment example:

/* php注释语法<br/>   这是多行注释。*/<br/>
Copy after login

Comments in the file header, introducing the file name, function and author version number and other information

/** <br/>*文件名简单介绍<br/>* <br/>*文件功能。 <br/>* @author      alvin 作者<br/>* @version     1.0 版本号<br/>*/<br/>
Copy after login

Comments of function, function function, parameter introduction and return type

/**  <br/>* 函数的含义说明 <br/>* <br/>* @access public <br/>* @param mixed $arg1 参数一的说明 <br/>* @param mixed $arg2 参数二的说明 <br/>* @param mixed $mixed 这是一个混合类型 <br/>* @return array 返回类型<br/>*/<br/>
Copy after login

The above is the detailed content of What does a php multi-line comment start with?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template