$tmpArr = array(); //临时数组 $tmpArr = $data; //$data:原数组
//array('不想要的键')
foreach(array('spu','warehouse','labelOperation','labelName','auditOperation') as $k) unset($tmpArr[$k]);
//可以选择性的删除,不需要用判断
$tmpArr = array(); //临时数组 $tmpArr = $data; //$data:原数组
//array('不想要的键')
foreach(array('spu','warehouse','labelOperation','labelName','auditOperation') as $k) unset($tmpArr[$k]);
//可以选择性的删除,不需要用判断
转载于:https://www.cnblogs.com/meibao/p/5102731.html