From 45b25b46d42ac40ddbc32c5796d727271cb8dc30 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=B1=A4=E4=BA=A6=E5=87=A1?= <1044020597@qq.com>
Date: Mon, 16 May 2022 03:41:23 +0000
Subject: [PATCH 1/5] 1
---
.../20220516.txt" | 30 +++++++++++++++++++
1 file changed, 30 insertions(+)
create mode 100644 "\346\261\244\344\272\246\345\207\241/20220516.txt"
diff --git "a/\346\261\244\344\272\246\345\207\241/20220516.txt" "b/\346\261\244\344\272\246\345\207\241/20220516.txt"
new file mode 100644
index 0000000..a79d0a9
--- /dev/null
+++ "b/\346\261\244\344\272\246\345\207\241/20220516.txt"
@@ -0,0 +1,30 @@
+";
+//2、 至少对3个字符串函数进行应用
+$str=" chenlingzhidashabi ";
+$str1=trim($str);
+echo strlen($str1);
+echo "
";
+$str2=ltrim($str);
+echo strlen($str2);
+echo "
";
+$str3=rtrim($str);
+echo strlen($str3);
+//3、 写一段程序,创建一个数组,其元素内容为从1到20的所有整数,并输出该数组。
+
+//4、 写一段代码,查找数组中是否存在某一个指定的元素,如果存在则返回数组的索引。
+//5、 写一段程序,创建一个关联数组,其元素是姓名,年龄,性别等个人信息,并输出该数组。
\ No newline at end of file
--
Gitee
From b8e5ec832aa384135d91db006492c0f552d69764 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=B1=A4=E4=BA=A6=E5=87=A1?= <1044020597@qq.com>
Date: Mon, 16 May 2022 14:09:43 +0000
Subject: [PATCH 2/5] 1
---
.../20220516-php\346\225\260\347\273\204.txt" | 35 +++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 "\346\261\244\344\272\246\345\207\241/20220516-php\346\225\260\347\273\204.txt"
diff --git "a/\346\261\244\344\272\246\345\207\241/20220516-php\346\225\260\347\273\204.txt" "b/\346\261\244\344\272\246\345\207\241/20220516-php\346\225\260\347\273\204.txt"
new file mode 100644
index 0000000..cadddac
--- /dev/null
+++ "b/\346\261\244\344\272\246\345\207\241/20220516-php\346\225\260\347\273\204.txt"
@@ -0,0 +1,35 @@
+";
+//2、 至少对3个字符串函数进行应用
+$str=" chenlingzhidashabi ";
+$str1=trim($str);
+echo strlen($str1);
+echo "
";
+$str2=ltrim($str);
+echo strlen($str2);
+echo "
";
+$str3=rtrim($str);
+echo strlen($str3);
+//3、 写一段程序,创建一个数组,其元素内容为从1到20的所有整数,并输出该数组。
+$arr = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20);
+for ($i=0;$i";
+//4、 写一段代码,查找数组中是否存在某一个指定的元素,如果存在则返回数组的索引。
+$arr = array("name"=>"陈某","age"=>"18","xg"=>"傻傻的");
+echo array_search(18,$arr);
+echo "
";
+//5、 写一段程序,创建一个关联数组,其元素是姓名,年龄,性别等个人信息,并输出该数组。
+$aa =array("name"=>"汤亦凡","age"=>"20","sex"=>"女");
+foreach($aa as $tt=>$bb){
+ echo "$tt = ".$bb."
";
+}
\ No newline at end of file
--
Gitee
From 0d2b880cc4299168c3ae30d5a0753660a8e3035c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=B1=A4=E4=BA=A6=E5=87=A1?= <1044020597@qq.com>
Date: Mon, 16 May 2022 14:10:01 +0000
Subject: [PATCH 3/5] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?=
=?UTF-8?q?=E6=B1=A4=E4=BA=A6=E5=87=A1/20220516.txt?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../20220516.txt" | 30 -------------------
1 file changed, 30 deletions(-)
delete mode 100644 "\346\261\244\344\272\246\345\207\241/20220516.txt"
diff --git "a/\346\261\244\344\272\246\345\207\241/20220516.txt" "b/\346\261\244\344\272\246\345\207\241/20220516.txt"
deleted file mode 100644
index a79d0a9..0000000
--- "a/\346\261\244\344\272\246\345\207\241/20220516.txt"
+++ /dev/null
@@ -1,30 +0,0 @@
-";
-//2、 至少对3个字符串函数进行应用
-$str=" chenlingzhidashabi ";
-$str1=trim($str);
-echo strlen($str1);
-echo "
";
-$str2=ltrim($str);
-echo strlen($str2);
-echo "
";
-$str3=rtrim($str);
-echo strlen($str3);
-//3、 写一段程序,创建一个数组,其元素内容为从1到20的所有整数,并输出该数组。
-
-//4、 写一段代码,查找数组中是否存在某一个指定的元素,如果存在则返回数组的索引。
-//5、 写一段程序,创建一个关联数组,其元素是姓名,年龄,性别等个人信息,并输出该数组。
\ No newline at end of file
--
Gitee
From c2dbd24bed53cddabc57313f29f98d5193368780 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=B1=A4=E4=BA=A6=E5=87=A1?= <1044020597@qq.com>
Date: Mon, 16 May 2022 14:10:12 +0000
Subject: [PATCH 4/5] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E6=B1=A4?=
=?UTF-8?q?=E4=BA=A6=E5=87=A1/20220516-php=E6=95=B0=E7=BB=84.txt=20?=
=?UTF-8?q?=E4=B8=BA=20=E6=B1=A4=E4=BA=A6=E5=87=A1/20220516-php=E6=95=B0?=
=?UTF-8?q?=E7=BB=84.md?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../20220516-php\346\225\260\347\273\204.md" | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename "\346\261\244\344\272\246\345\207\241/20220516-php\346\225\260\347\273\204.txt" => "\346\261\244\344\272\246\345\207\241/20220516-php\346\225\260\347\273\204.md" (100%)
diff --git "a/\346\261\244\344\272\246\345\207\241/20220516-php\346\225\260\347\273\204.txt" "b/\346\261\244\344\272\246\345\207\241/20220516-php\346\225\260\347\273\204.md"
similarity index 100%
rename from "\346\261\244\344\272\246\345\207\241/20220516-php\346\225\260\347\273\204.txt"
rename to "\346\261\244\344\272\246\345\207\241/20220516-php\346\225\260\347\273\204.md"
--
Gitee
From 548931eae9f08ef95e835936c53015c226fbe828 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=B1=A4=E4=BA=A6=E5=87=A1?= <1044020597@qq.com>
Date: Mon, 16 May 2022 14:10:32 +0000
Subject: [PATCH 5/5] =?UTF-8?q?update=20=E6=B1=A4=E4=BA=A6=E5=87=A1/202205?=
=?UTF-8?q?16-php=E6=95=B0=E7=BB=84.md.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../20220516-php\346\225\260\347\273\204.md" | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git "a/\346\261\244\344\272\246\345\207\241/20220516-php\346\225\260\347\273\204.md" "b/\346\261\244\344\272\246\345\207\241/20220516-php\346\225\260\347\273\204.md"
index cadddac..8766fff 100644
--- "a/\346\261\244\344\272\246\345\207\241/20220516-php\346\225\260\347\273\204.md"
+++ "b/\346\261\244\344\272\246\345\207\241/20220516-php\346\225\260\347\273\204.md"
@@ -1,14 +1,15 @@
+```php
";
-//2、 至少对3个字符串函数进行应用
+//2銆 鑷冲皯瀵3涓瓧绗︿覆鍑芥暟杩涜搴旂敤
$str=" chenlingzhidashabi ";
$str1=trim($str);
echo strlen($str1);
@@ -18,18 +19,18 @@ echo strlen($str2);
echo "
";
$str3=rtrim($str);
echo strlen($str3);
-//3、 写一段程序,创建一个数组,其元素内容为从1到20的所有整数,并输出该数组。
+//3銆 鍐欎竴娈电▼搴忥紝鍒涘缓涓涓暟缁勶紝鍏跺厓绱犲唴瀹逛负浠1鍒20鐨勬墍鏈夋暣鏁帮紝骞惰緭鍑鸿鏁扮粍銆
$arr = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20);
for ($i=0;$i";
-//4、 写一段代码,查找数组中是否存在某一个指定的元素,如果存在则返回数组的索引。
-$arr = array("name"=>"陈某","age"=>"18","xg"=>"傻傻的");
+//4銆 鍐欎竴娈典唬鐮侊紝鏌ユ壘鏁扮粍涓槸鍚﹀瓨鍦ㄦ煇涓涓寚瀹氱殑鍏冪礌锛屽鏋滃瓨鍦ㄥ垯杩斿洖鏁扮粍鐨勭储寮曘
+$arr = array("name"=>"闄堟煇","age"=>"18","xg"=>"鍌诲偦鐨");
echo array_search(18,$arr);
echo "
";
-//5、 写一段程序,创建一个关联数组,其元素是姓名,年龄,性别等个人信息,并输出该数组。
-$aa =array("name"=>"汤亦凡","age"=>"20","sex"=>"女");
+//5銆 鍐欎竴娈电▼搴忥紝鍒涘缓涓涓叧鑱旀暟缁勶紝鍏跺厓绱犳槸濮撳悕锛屽勾榫勶紝鎬у埆绛変釜浜轰俊鎭紝骞惰緭鍑鸿鏁扮粍銆
+$aa =array("name"=>"姹や害鍑","age"=>"20","sex"=>"濂");
foreach($aa as $tt=>$bb){
echo "$tt = ".$bb."
";
}
\ No newline at end of file
--
Gitee