Home  >  Article  >  Backend Development  >  PHP study notes (1): basic syntax tags, blanks, and comments, study notes basic syntax_PHP tutorial

PHP study notes (1): basic syntax tags, blanks, and comments, study notes basic syntax_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 09:56:57950browse

PHP study notes (1): basic syntax tags, blanks, and comments, study notes basic syntax

1. PHP tags

1. XML style
Copy code The code is as follows:


2. Short style
Copy code The code is as follows:


3. Script style
Copy code The code is as follows:

2. PHP Notes

1. Single line comment: // (C style)
2. Multi-line comments: /* */ (C style)
3. Single-line script comment: # (shell style)

Tips: Comments are generally written above the code

3. PHP blank

1. Blank spacer

Line feed (carriage return), space, Tab (tab character)

2. Conventions and customs

Code snippet (2 lines), class (2 lines), function (1 line), function variable and first statement (1 line), before comment (1 line)

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/985260.htmlTechArticlePHP study notes (1): basic syntax tags, blanks, and comments, study notes basic syntax 1, PHP Mark 1. The XML style copy code is as follows: php echo "hello world"; 2. ...
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