我试图获得多维数组的第一维的当前内部指针。这是可能的内置PHP函数吗?
查看current()
current()
检查第一个维度,使用:
current($array);
检查第二个维度,使用:
current(current($array));