PHP判断一个数组中是否有的键值为空

如题所述

第1个回答  2016-11-12

只能foreach判断,比如:

foreach($arr as $key=>$val){
if(empty($val)){
echo $key . '为空';
}
}

本回答被网友采纳
相似回答