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

PHP coding standards (4)_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:20:26876browse

3.4 Indentation

Four spaces are often used as a unit for indentation. The exact interpretation of indentation (spaces vs. tabs) is not specified. A tab character is equal to 8 spaces (not 4), so in some editors, you need to specify that the length of the tab character is 4 (UltraEdit), and in some editors, the tab character will be characters are converted to spaces
3.5 line length

Try to avoid a line longer than 80 characters, as many terminals and tools cannot handle this well.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532600.htmlTechArticle3.4 Indented layout 4 spaces are often used as a unit of indented layout. The exact interpretation of indentation (spaces vs. tabs) is not specified. One tab is equal to 8 spaces (not 4), so...
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