如果要在某个数组中删除一个元素,可以直接用的unset,例子代码:以上代码输出的结果如下:E:\TEMP\文件\exp>a.phpArray( [0] => a [1] => b [2] => c [3] => d)Array( [0] => a [2] => c [3] => d)