PHP删除数组中特定元素的两种方法 方法一:复制代码 代码如下:<?php$arr1 = array(1,3, 5,7,8);$key = array_search(3, $arr1); if ($key PHP编程 2022-04-08 155 点赞 2 评论 234 浏览