From 9ed65a0176f5ce209ca81b25aab4c98e634507c4 Mon Sep 17 00:00:00 2001 From: unknown <510873001@qq.com> Date: Tue, 10 May 2022 17:10:47 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "\351\231\210\351\233\205\346\245\240/20220510-PHP.md" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\351\231\210\351\233\205\346\245\240/20220510-PHP.md" diff --git "a/\351\231\210\351\233\205\346\245\240/20220510-PHP.md" "b/\351\231\210\351\233\205\346\245\240/20220510-PHP.md" new file mode 100644 index 0000000..e69de29 -- Gitee From 17e2d0109c8852df1b561ba99d2d2efe5e8891ef Mon Sep 17 00:00:00 2001 From: unknown <510873001@qq.com> Date: Tue, 10 May 2022 17:23:54 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20220510-PHP.md" | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git "a/\351\231\210\351\233\205\346\245\240/20220510-PHP.md" "b/\351\231\210\351\233\205\346\245\240/20220510-PHP.md" index e69de29..181a61d 100644 --- "a/\351\231\210\351\233\205\346\245\240/20220510-PHP.md" +++ "b/\351\231\210\351\233\205\346\245\240/20220510-PHP.md" @@ -0,0 +1,48 @@ +## 笔记 +PHP +1.下载安装 phpstudy、PHPstorm +2.文件--》新建项目--》PHP空项目 +3.格式:<?php //中间为代码 +4.变量 +格式:$ +变量名 例如:$name; +$name="小明"; +var_dump($name);//返回变量的类型、长度、和值。 +5.常量 +<1>.预定义常量,由PHP中提供。 +<2>.自定义常量:用户自己定义的,使用define('常量的名字',常量的值)。 +另一种定义常量的方法const 常量名=常量值 例如:const PI=3.14;严格区分大小写; +const和define的区别,const不能写到函数里。 +6.输出 +<1>.echo 能输出多个字符串无返回值。 +<2>.print 只能输出一个字符串若成功则返回1,反之则返回0。 +<3>.PHP链接多个字符串,不用+号。 + + +## 课堂作业 + + 《静夜思》
"; +echo "
李白

"; +echo "

床前明月光,疑是地上霜。


"; +echo "

举头望明月,低头思故乡。


"; + + +## 课后作业 + + + Date: Tue, 10 May 2022 17:28:52 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20220510-PHP.php" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\351\231\210\351\233\205\346\245\240/20220510-PHP.md" => "\351\231\210\351\233\205\346\245\240/20220510-PHP.php" (100%) diff --git "a/\351\231\210\351\233\205\346\245\240/20220510-PHP.md" "b/\351\231\210\351\233\205\346\245\240/20220510-PHP.php" similarity index 100% rename from "\351\231\210\351\233\205\346\245\240/20220510-PHP.md" rename to "\351\231\210\351\233\205\346\245\240/20220510-PHP.php" -- Gitee From e726e80ed3b42185e585628b12e12ecade5a84c7 Mon Sep 17 00:00:00 2001 From: unknown <510873001@qq.com> Date: Tue, 10 May 2022 17:31:13 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20220510-PHP.php" | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git "a/\351\231\210\351\233\205\346\245\240/20220510-PHP.php" "b/\351\231\210\351\233\205\346\245\240/20220510-PHP.php" index 181a61d..c3fb0d3 100644 --- "a/\351\231\210\351\233\205\346\245\240/20220510-PHP.php" +++ "b/\351\231\210\351\233\205\346\245\240/20220510-PHP.php" @@ -1,24 +1,24 @@ -## 笔记 -PHP -1.下载安装 phpstudy、PHPstorm -2.文件--》新建项目--》PHP空项目 -3.格式:<?php //中间为代码 -4.变量 -格式:$ +变量名 例如:$name; -$name="小明"; -var_dump($name);//返回变量的类型、长度、和值。 -5.常量 -<1>.预定义常量,由PHP中提供。 -<2>.自定义常量:用户自己定义的,使用define('常量的名字',常量的值)。 -另一种定义常量的方法const 常量名=常量值 例如:const PI=3.14;严格区分大小写; -const和define的区别,const不能写到函数里。 -6.输出 -<1>.echo 能输出多个字符串无返回值。 -<2>.print 只能输出一个字符串若成功则返回1,反之则返回0。 -<3>.PHP链接多个字符串,不用+号。 - - -## 课堂作业 +# 笔记 +//PHP +//1.下载安装 phpstudy、PHPstorm +//2.文件--》新建项目--》PHP空项目 +//3.格式:<?php //中间为代码 +//4.变量 +//格式:$ +变量名 例如:$name; +//$name="小明"; +//var_dump($name);//返回变量的类型、长度、和值。 +//5.常量 +//<1>.预定义常量,由PHP中提供。 +//<2>.自定义常量:用户自己定义的,使用define('常量的名字',常量的值)。 +//另一种定义常量的方法const 常量名=常量值 例如:const PI=3.14;严格区分大小写; +//const和define的区别,const不能写到函数里。 +//6.输出 +//<1>.echo 能输出多个字符串无返回值。 +//<2>.print 只能输出一个字符串若成功则返回1,反之则返回0。 +//<3>.PHP链接多个字符串,不用+号。 + + +# 课堂作业 《静夜思》
"; @@ -27,7 +27,7 @@ echo "

echo "

举头望明月,低头思故乡。


"; -## 课后作业 +# 课后作业