InternalIterator::key

(PHP 8)

InternalIterator::keyReturn the key of the current element

Description

public InternalIterator::key(): mixed

Returns the key of the current element.

Parameters

This function has no parameters.

Return Values

Returns the key of the current element.