PHP - Manual: IteratorIterator::key
2024-12-20
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
IteratorIterator::key — Get the key of the current element
Get the key of the current element.
此函数没有参数。
The key of the current element.
官方地址:https://www.php.net/manual/en/iteratoriterator.key.php