判断是一维数组还是二维数组

count($arr) == count($arr, 1)
第二个会递归查询数组的长度,来计算长度
原文地址:https://www.cnblogs.com/hanshuai0921/p/6490815.html