PHP学习笔记
PHP学习笔记(暂时先不更了…)
PHP Basic Rules
PHP文件默认的文件拓展名.php
The first PHP examle
1 | <!DOCTYPE html> |
The function is to print “Hello World!” to Browser.Each line ends with
;
annotate(注释)
Like C, PHP have two ways to annotate.
- 单行注释,use
//
or#
- 多行注释,use
/* */
Variables
- in PHP, variable must begin with
$
- Variable names are case-sensitive(
$a
and$A
are different variables) - Other rules of name are the same as C language