php判断数组是一维还是多维

if(count($arr) == count($arr,1)){
echo '一维数组';
}else{
echo '多维数组';
}

posted @ 2019-04-30 10:23  谦逊的铅笔  阅读(1134)  评论(0编辑  收藏  举报