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));
精彩评论