php数组中删除元素

unset($arr[key]);  //索引值删除
array_splice($arr,$key,1);  //索引值递补

原文地址:https://www.cnblogs.com/zygxfx/p/4481201.html