From 8e4883d0ef5f24df1e78ef213cd09c2256724248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E6=99=9F?= <3056937090@qq.com> Date: Thu, 12 May 2022 22:50:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20220511-PHP\345\237\272\347\241\200.md" | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 "\347\250\213\346\231\237/20220511-PHP\345\237\272\347\241\200.md" diff --git "a/\347\250\213\346\231\237/20220511-PHP\345\237\272\347\241\200.md" "b/\347\250\213\346\231\237/20220511-PHP\345\237\272\347\241\200.md" new file mode 100644 index 0000000..d271fdc --- /dev/null +++ "b/\347\250\213\346\231\237/20220511-PHP\345\237\272\347\241\200.md" @@ -0,0 +1,42 @@ +# 基础 + +在JAVA这类强类型语言中声明变量必须注明变量类型 + +PHP是弱类型语言 + +PHP的变量只需要使用$符号开头,直接赋值就能使用,完全不需要声明。 + +单双引号的区别 + +```PHP +$str = "demo"; + +$a = 'qwe$str'; +echo $a; // 返回qwe$str + +$b = "qwe$str"; +echo $b; //返回qwedemo +//PHP会将双引号字符串中的$str变量解析成demo。 +``` + +**在PHP中连接符是“.”** + +数组用var_dump()打印 + +# 自我介绍 + +```PHP + +
+我叫程晟,是一名正在学习前端的大学生。
+我现在学习了H5和CSS还有Java。现在正在学习PHP。
+我想我不是真的喜欢前端,也不是选择了前端,只是单纯的享受自己写的代码在浏览器运行时的快感
+现在的我做出的东西细小且微弱,但也是独属于我的闪耀星光!!!
+