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

PHP coding standards (18)_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-13 17:20:14976browse

7.1 Blank line

Blank lines separate logically related code segments to improve readability.

You should always use two blank lines in the following situations:
- between two sections of a source file
- between class declarations

The following situations A blank line should always be used:
- between two methods
- between a local variable within a method and the first statement of the method
- before a block comment or single-line comment
- a Between two logical sections within a method to improve readability


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532586.htmlTechArticle7.1 Blank lines Blank lines separate logically related code segments to improve readability. Two blank lines should always be used in the following situations: - between two sections of a source file - class declarations...
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