Home  >  Article  >  Backend Development  >  What does a php multi-line comment start with?

What does a php multi-line comment start with?

(*-*)浩
(*-*)浩Original
2019-10-09 09:22:057201browse

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/>

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/>

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/>

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!

Statement:
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