R3m/framework Function reference array.key

{array.key(String $selector)}

{array.key()} returns the index element of the current array position.

The {array.key()} function simply returns the key of the array element that's currently being pointed to by the internal pointer as a string | int | null.
It does not move the pointer in any way.
If the internal pointer points beyond the end of the elements list, or the array is empty, key() returns null.

More information:


Last modified: 2021-06-07

© 2021 universeorange.com