开发者

Get current internal pointer for 1st dimension of a multidimensional array in PHP

I am trying to get the current internal pointer of the 1st dimension of a multidimensional array. Is this possible with built in PHP funct开发者_如何学Goions?


Check out current().

To check the first dimension, use:

current($array);

To check the second dimension, use:

current(current($array));
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜