From 72be2a846d35891b089128758fcb32431cedc691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AE=B6=E7=8E=B2?= <1851699117@qq.com> Date: Mon, 13 Jun 2022 00:07:44 +0000 Subject: [PATCH 1/3] =?UTF-8?q?update=20=E6=9D=8E=E5=AE=B6=E7=8E=B2/202206?= =?UTF-8?q?08-PHP=E5=8A=A8=E6=80=81=E7=BD=91=E7=AB=99=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E5=A4=A7=E4=BD=9C=E4=B8=9A.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\270\200\346\254\241\345\244\247\344\275\234\344\270\232.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/\346\235\216\345\256\266\347\216\262/20220608-PHP\345\212\250\346\200\201\347\275\221\347\253\231\345\274\200\345\217\221\347\254\254\344\270\200\346\254\241\345\244\247\344\275\234\344\270\232.md" "b/\346\235\216\345\256\266\347\216\262/20220608-PHP\345\212\250\346\200\201\347\275\221\347\253\231\345\274\200\345\217\221\347\254\254\344\270\200\346\254\241\345\244\247\344\275\234\344\270\232.md" index 3b87915..81a51cb 100644 --- "a/\346\235\216\345\256\266\347\216\262/20220608-PHP\345\212\250\346\200\201\347\275\221\347\253\231\345\274\200\345\217\221\347\254\254\344\270\200\346\254\241\345\244\247\344\275\234\344\270\232.md" +++ "b/\346\235\216\345\256\266\347\216\262/20220608-PHP\345\212\250\346\200\201\347\275\221\347\253\231\345\274\200\345\217\221\347\254\254\344\270\200\346\254\241\345\244\247\344\275\234\344\270\232.md" @@ -13,7 +13,7 @@ C.var $a = 12; D.$a = 10; -2、下列语言代码的循环体执行的次数是? B +2、下列语言代码的循环体执行的次数是? A Date: Mon, 13 Jun 2022 00:55:07 +0000 Subject: [PATCH 2/3] =?UTF-8?q?update=20=E6=9D=8E=E5=AE=B6=E7=8E=B2/202206?= =?UTF-8?q?08-PHP=E5=8A=A8=E6=80=81=E7=BD=91=E7=AB=99=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E5=A4=A7=E4=BD=9C=E4=B8=9A.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...4\270\200\346\254\241\345\244\247\344\275\234\344\270\232.md" | 1 + 1 file changed, 1 insertion(+) diff --git "a/\346\235\216\345\256\266\347\216\262/20220608-PHP\345\212\250\346\200\201\347\275\221\347\253\231\345\274\200\345\217\221\347\254\254\344\270\200\346\254\241\345\244\247\344\275\234\344\270\232.md" "b/\346\235\216\345\256\266\347\216\262/20220608-PHP\345\212\250\346\200\201\347\275\221\347\253\231\345\274\200\345\217\221\347\254\254\344\270\200\346\254\241\345\244\247\344\275\234\344\270\232.md" index 81a51cb..dcd2610 100644 --- "a/\346\235\216\345\256\266\347\216\262/20220608-PHP\345\212\250\346\200\201\347\275\221\347\253\231\345\274\200\345\217\221\347\254\254\344\270\200\346\254\241\345\244\247\344\275\234\344\270\232.md" +++ "b/\346\235\216\345\256\266\347\216\262/20220608-PHP\345\212\250\346\200\201\347\275\221\347\253\231\345\274\200\345\217\221\347\254\254\344\270\200\346\254\241\345\244\247\344\275\234\344\270\232.md" @@ -177,6 +177,7 @@ $a=array("a"=>"red","b"=>"green","c"=>"blue");(10分) ```php $a=array("a"=>"red","b"=>"green","c"=>"blue"); +echo array_search("red",$a); ``` -- Gitee From b34802da36474e1b0414ea6797b7e9f272bad4c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AE=B6=E7=8E=B2?= <1851699117@qq.com> Date: Mon, 13 Jun 2022 15:45:10 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...45\244\247\344\275\234\344\270\232.md.txt" | 353 ++++++++++++++++++ 1 file changed, 353 insertions(+) create mode 100644 "\346\235\216\345\256\266\347\216\262/20220613-\347\254\254\344\272\214\344\270\252\345\244\247\344\275\234\344\270\232.md.txt" diff --git "a/\346\235\216\345\256\266\347\216\262/20220613-\347\254\254\344\272\214\344\270\252\345\244\247\344\275\234\344\270\232.md.txt" "b/\346\235\216\345\256\266\347\216\262/20220613-\347\254\254\344\272\214\344\270\252\345\244\247\344\275\234\344\270\232.md.txt" new file mode 100644 index 0000000..c4a1de1 --- /dev/null +++ "b/\346\235\216\345\256\266\347\216\262/20220613-\347\254\254\344\272\214\344\270\252\345\244\247\344\275\234\344\270\232.md.txt" @@ -0,0 +1,353 @@ + **PHP动态网站开发第二次大作业** + +一、选择题(6分) + +1、下面哪项描述是错误的? A + +A.静态成员必须实例化对象才能使用 + +B.成员变量需要用public protected private修饰,在定义变量时不再需要var关键字 + +C.类中的普通方法只能实例化对象才能进行调用 + +D.包含抽象方法的类必须为抽象类,抽象类不能被实例化 + +2、关于面向对象的说法不正确的是? D + +A:OOP是面向对象的简称 + +B:静态方法不用实例化对象就能调用 + +C:类里面的$this关键字代表该对象本身 + +D:普通方法不用实例化对象就能调用 + +3、面向对象的三大特性中哪个不属于封装的做法? B + +A 将成员变为私有的 + +B 将成员变为公有的 + +C 封装方法来操作成员 + +D 使用private修饰方法 + +二、简答题(4分) + +1:面象对象的三大特性是什么? + +封装,继承,多态 + +三、操作题(90分) + + 1、制作一个文件上传的页面,完成文件上传功能。(30分) + +限制规则: + +上传的文件不能超过1M, + +上传文件的类型只能是jpg、gif、png、jpeg, + +对上传的文件进行保存。 + +```html +#shang.php + + + +
+ +部门编号 | +部门名称 | +部门描述 | +操作 | +暂无数据! | "; + }else{ + while ($row=mysqli_fetch_assoc($result)) { + ?> +
---|---|---|---|
+ | + | + | + 修改| + 删除 + | +