PHP Learning Notes (i): basic grammar markers, blanks, and annotations, learning Notes basic Grammar _php tutorial

Source: Internet
Author: User

PHP Learning Notes (i): basic grammar markers, blanks, and annotations, learning the basic grammar of notes


First, PHP tags

1. XML style
Copy the Code code as follows:
<?php echo "Hello World";? >

2. Short style
Copy the Code code as follows:
<? echo "Hello World";?>

3. Script Style
Copy the Code code as follows:

Second, PHP comments

1. Single-line Comment://(C + + style)
2. Multiline Comment:/* */(c-style)
3. Single-line script Comment: # (shell style)

Tips: Notes are generally written on the code

Third, PHP blank

1. Blank Spacer

Line break (carriage return), Space, tab (tab)

2. Conventions and customs

Code snippet (2 lines), Class (2 rows), function (1 rows), function variable and first statement (1 lines), before comment (1 lines)

http://www.bkjia.com/PHPjc/985260.html www.bkjia.com true http://www.bkjia.com/PHPjc/985260.html techarticle PHP Learning Notes (a): The basic syntax of the mark, blank, and comments, learning notes basic syntax one, PHP tag 1, XML style copy code code is as follows: PHP echo "Hello World"; 2 、...

  • 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.