Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<SplDoublyLinkedList::isEmptySplDoublyLinkedList::next>
^SplDoublyLinkedListLast updated: Mon, 26 Oct 2026

SplDoublyLinkedList::key

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

SplDoublyLinkedList::key — Return current node index

Description

public function SplDoublyLinkedList::key(): int

This function returns the current node index

Parameters

This function has no parameters.

Return Values

The current node index.


<SplDoublyLinkedList::isEmptySplDoublyLinkedList::next>
^SplDoublyLinkedListLast updated: Mon, 26 Oct 2026