From 79c3d78dceb118228743f1859ecd469f6d544e0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=8F=A9=E5=AE=87?= <1925957642@qq.com> Date: Mon, 16 May 2022 21:48:21 +0800 Subject: [PATCH] f --- .../20220516-php\345\207\275\346\225\260.md" | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 "\347\216\213\347\217\251\345\256\207/20220516-php\345\207\275\346\225\260.md" diff --git "a/\347\216\213\347\217\251\345\256\207/20220516-php\345\207\275\346\225\260.md" "b/\347\216\213\347\217\251\345\256\207/20220516-php\345\207\275\346\225\260.md" new file mode 100644 index 0000000..17bde9d --- /dev/null +++ "b/\347\216\213\347\217\251\345\256\207/20220516-php\345\207\275\346\225\260.md" @@ -0,0 +1,62 @@ +# 作业 + +```php+HTML +'; +echo strtoupper($str); +echo '
'; +$a =substr($str,3,9); +echo $a; +echo '
'; +echo chop($str); + + +刘奇','age'=>20,'sex'=>'女';) + foreach ($arr as $key => $s){ + echo $key.= $s; +} +//5、写一段代码,查找数组中是否存在某一个指定的元素,如果存在则返回数组的索引。 +$arr =array('name=>刘奇','age'=>20,'sex'=>'女';) + $a=array_search(20,$arr); +echo $a; +``` + -- Gitee