From aaebc087031bf2f79fa54564bb661b23303509c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A6=E7=BB=8D=E4=B8=A5?= <790604007@qq.com> Date: Thu, 12 May 2022 13:43:52 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E9=9F=A6=E7=BB=8D?= =?UTF-8?q?=E4=B8=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "\351\237\246\347\273\215\344\270\245/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\351\237\246\347\273\215\344\270\245/.keep" diff --git "a/\351\237\246\347\273\215\344\270\245/.keep" "b/\351\237\246\347\273\215\344\270\245/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From dbe59d738e1bf9252ee8b86964ee3c500ce768b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A6=E7=BB=8D=E4=B8=A5?= <790604007@qq.com> Date: Thu, 12 May 2022 14:13:22 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E9=9F=A6=E7=BB=8D=E4=B8=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20220511--\350\256\244\350\257\206PHP.md" | 129 ++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 "\351\237\246\347\273\215\344\270\245/20220511--\350\256\244\350\257\206PHP.md" diff --git "a/\351\237\246\347\273\215\344\270\245/20220511--\350\256\244\350\257\206PHP.md" "b/\351\237\246\347\273\215\344\270\245/20220511--\350\256\244\350\257\206PHP.md" new file mode 100644 index 0000000..84954b4 --- /dev/null +++ "b/\351\237\246\347\273\215\344\270\245/20220511--\350\256\244\350\257\206PHP.md" @@ -0,0 +1,129 @@ +## PHP + +##### 可以与HTML,css,java等一起用 + +PHP 脚本以 **<?php** 开始,以 **?>** 结束: + +```php + +``` + + + +#### echo 和 print 输出语句 + +##### 区别: + +- echo - 可以输出一个或多个字符串 +- print - 只允许输出一个字符串,返回值总为 1 + +#### 变量 + +- 变量以 $ 符号开始,后面跟着变量的名称 +- 变量名必须以字母或者下划线字符开始 +- 变量名只能包含字母、数字以及下划线 +- 变量名不能包含空格 +- 变量名是区分大小写的 + + + +##### var_dump(变量名) 返回变量的类型和值 + + + +#### 常量 + +##### define + +define(常量名,常量值,是否区分大小写(默认为false,区分)) + +```php +define("name","小明",true); +``` + + + +```php + + + +
+ + 自我介绍 + + + + + +
+ +
+ +
+ +
+
+ + +

+ +

+
+ + +

+

+ +

+

+ +
+

+ +

+
+ +

+

+ +

+

+ +

+

+
+ + +
+ + +``` + + + + + -- Gitee