php
//比如二维数组
$arr=array(array('id'=>2,'nickname'=>'chenjudong','email'=>''), array ('id'=>8,'nickname'=>'天使爱美丽','email'=>''));
$arrNew=array();
foreach($arr as $k=>$v){
$arrNew[$k]=array('id'=>$v['id'],'nickname'=>$v['nickname']);
}
php
//只是email的话,下面这个就够了
foreach ($arr as &$value) {
if(isset($value['email'])){
unset($value['email']);
}
}