开发者

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

开发者 https://www.devze.com 2023-03-29 12:06 出处:网络
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().

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

精彩评论

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