摘要: 1111 阅读全文
posted @ 2022-04-17 21:59 好(justice)…… 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 选择不同数据表的数据 Dao public class RouteDao { public List<Route> findno1(){ List<Route> list=new ArrayList<>(); Connection conn=null; ResultSet rs=null; Prep 阅读全文
posted @ 2022-04-17 21:02 好(justice)…… 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 4 遍历下列数组:(提示双层foreach遍历) $arr = array( array(1,2,3,7), array('name'=>'it','pass'=>'123'), array(1,'sex'=>'man',3), ); (8.0分) <?php$arr = array( array( 阅读全文
posted @ 2022-04-17 20:52 好(justice)…… 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 打印出昨天此时的时刻的时间戳。 (8.0分) 当前时间:echo date(”Y-m-d H:i:s”,time()) 指定时间:echo date(”Y-m-d H:i:s”,strtotime(”-1 day”)) 2 获取以下文件的后缀 $str = 'C:\xampp\htdocs\php- 阅读全文
posted @ 2022-04-17 20:51 好(justice)…… 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 1 采用for循环遍历索引数组前需要获得数组元素个数 (5.0分) √ 2 采用foreach循环遍历索引数组前需要获得数组的元素个数。 (5.0分) × 3 print_r函数可以显示索引数组的结构和数值 (5.0分) √ 阅读全文
posted @ 2022-04-17 20:48 好(justice)…… 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 1 获得数组元素个数,可以采用________()函数。(小写) (5.0分) 第一空: count 2 $cars=array("Volvo","BMW","SAAB",10,3.14,true); 如果访问其中值为10的这个元素,访问方式是$cars[ _____ ]? 4 strlen("Go 阅读全文
posted @ 2022-04-17 20:47 好(justice)…… 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 1.$cars=array( array("Volvo",22,18), array("BMW",15,13), array("Saab",5,2), array("Land Rover",17,15) ); (6.0分) A 内外层都是索引数组 B 内层是索引数组,外层是关联数组 C 内层是关联数 阅读全文
posted @ 2022-04-17 20:45 好(justice)…… 阅读(43) 评论(0) 推荐(0) 编辑