Basic syntax for PHP:
PHP script executes on the server and then sends back pure HTML results like a browser
Basic PHP syntax
PHP script starts with <?php and ends with?>
<?php#php Code?>
The default file name extension for PHP files is ". php".
PHP files usually contain HTML tags and some PHP script code.
Give me a chestnut:
Note: Comments in PHP code
<?php# Comment content//comment content Multiline comment with/* Comment content */?>
About PHP Case most grateful
In PHP, all user-defined function classes, keywords are not sensitive to case
Keywords include if,else,echo, etc.
For variable case most grateful you need to be aware of the variable case when referencing.
This article refers to the http://www.w3school.com.cn/php
This article is from the "Snowbamboo" blog, make sure to keep this source http://snowbamboo.blog.51cto.com/11317386/1906270
PHP Basic Syntax