SplDoublyLinkedList::key

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

SplDoublyLinkedList::keyReturn current node index

說明

public SplDoublyLinkedList::key(): int

This function returns the current node index

參數(shù)

此函數(shù)沒有參數(shù)。

返回值

The current node index.