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