Home > Backend Development > PHP Tutorial > PHP coding standards (2)_PHP tutorial

PHP coding standards (2)_PHP tutorial

WBOY
Release: 2016-07-13 17:20:22
Original
873 people have browsed it

3.1 Opening Notes

All source files should have a C-style comment at the beginning listing the class name, function, version information, date, author, and copyright statement:


/*
* Class name
* Function
* Version
* Date
* Author
* Copyright
*/

If the file is modified, the purpose of the modification, the date of modification, the person who modified it, and the version information of the file should be stated in the file header; if a part of the file is modified, a comment should be made in the file and the modified part should be identified. The starting and ending positions

……

/*
* Purpose of modification
* Date of modification
* Modifier
* Version
*/

……

Start of modification

……

……

End of modification

……


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532602.htmlTechArticle3.1 Comment at the beginning All source files should have a C language style comment at the beginning listing the class name , function, version information, date, author and copyright statement: /* * Class name * Function...
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