PHP coding specification (18)

Source: Internet
Author: User
7.1 empty lines separate code segments related to logic to improve readability. In the following cases, two empty rows should always be used:-between two segments of a source file and between class declaration. in the following cases, one empty row should always be used: -between two methods-SyntaxHighlighter for local variables in the method and the first statement of the method. all (); 7.1 blank lines

Empty lines separate segments related to logic to improve readability.

Two empty rows should always be used in the following cases:
-Two sections of a source file
-Inter-class declaration

Always use a blank line in the following cases:
-Between two methods
-Between the local variable in the method and the first statement of the method
-Block or single line comment
-Two logical segments in a method to improve readability


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.