From a59c405f3b3ccb7c2dda983e9a1178ae2f02cabf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=94=A6=E5=86=9B?= <1929707670@qq.com> Date: Thu, 12 May 2022 14:01:34 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=8E=8B=E9=94=A6?= =?UTF-8?q?=E5=86=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "\347\216\213\351\224\246\345\206\233/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\216\213\351\224\246\345\206\233/.keep" diff --git "a/\347\216\213\351\224\246\345\206\233/.keep" "b/\347\216\213\351\224\246\345\206\233/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 932ef3f05e1030ac07deba5e76fe141300fd963e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=94=A6=E5=86=9B?= <1929707670@qq.com> Date: Thu, 12 May 2022 14:34:26 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E7=8E=8B=E9=94=A6=E5=86=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...72\346\234\254\346\246\202\345\277\265.md" | 142 ++++++++++++++++++ 1 file changed, 142 insertions(+) create mode 100644 "\347\216\213\351\224\246\345\206\233/20220512-PHP\345\237\272\346\234\254\346\246\202\345\277\265.md" diff --git "a/\347\216\213\351\224\246\345\206\233/20220512-PHP\345\237\272\346\234\254\346\246\202\345\277\265.md" "b/\347\216\213\351\224\246\345\206\233/20220512-PHP\345\237\272\346\234\254\346\246\202\345\277\265.md" new file mode 100644 index 0000000..67ebac9 --- /dev/null +++ "b/\347\216\213\351\224\246\345\206\233/20220512-PHP\345\237\272\346\234\254\346\246\202\345\277\265.md" @@ -0,0 +1,142 @@ +# Myfirst Php + + + +# note: + +1. ## PHP特点: + +(1)开源免费 + +(2)跨平台性 + +(3)面向对象 + +(4)支持多种数据库。PHP可以连接任何支持该标准的数据库,例如Oracle,SQL Server、MYSQL等。 + +(5)快捷性 + + + +2. ## PHP支持多种风格的标记: + +* 标准标记风格([服务器](https://www.baidu.com/s?wd=服务器&tn=24004469_oem_dg&rsv_dl=gh_pl_sl_csd)管理员无法禁用,所有服务器上均可使用该风格。) + + + +* 短标记风格(需要在配置文件php.ini中启用short_open_tage选项) + + + +* ASP标记风格(需要在配置文件php.ini中启用asp_tag选项) + +<% //中间是php代码; %> + +* 脚本标记风格(默认开启,无法禁用) + + + + + +3. ## 输出: + +* ```php + **echo** **"hello world";** + //echo 能输出多个字符串,但无返回值 例:echo “a”,”b”; + ``` + + + +* ```php + print "hello world"; + //print 只能输出一个字符串,如果输出成功,则返回1,即true;反之则返回0,即false + ``` + +​ + +* ```php + var_dump()  + //函数用于输出变量的相关信息,常用来查看变量的返回值和数据类型 + ``` + + + +* ```php + //4 php 连接多个字符串用. 不用+号 + + ``` + + + +# 作业: + + + +```php + + + + 静夜思 + + + + +
+ +
+ + + + + + + +``` + + + + + + + +```php + + + + +

+ +

+ + + +``` + -- Gitee