(PHP 5, PHP 7, PHP 8)
Iterator::key — Return the key of the current element
Returns the key of the current element.
This function has no parameters.
Returns scalar on success, or null on failure.
null
Issues E_NOTICE on failure.
E_NOTICE