Home >Backend Development >PHP Tutorial >PHP coding standards (4)_PHP tutorial
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.