(PHP 8)
InternalIterator::key — Return the key of the current element
public InternalIterator::key(): mixed
Returns the key of the current element.
This function has no parameters.
Returns the key of the current element.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/internaliterator.key.php