array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'it', ), 'this' => array ( 0 => 'spldoublylinkedlist.unshift.php', 1 => 'SplDoublyLinkedList::unshift', 2 => 'Prepends the doubly linked list with an element', ), 'up' => array ( 0 => 'class.spldoublylinkedlist.php', 1 => 'SplDoublyLinkedList', ), 'prev' => array ( 0 => 'spldoublylinkedlist.unserialize.php', 1 => 'SplDoublyLinkedList::unserialize', ), 'next' => array ( 0 => 'spldoublylinkedlist.valid.php', 1 => 'SplDoublyLinkedList::valid', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/spl/spldoublylinkedlist/unshift.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SplDoublyLinkedList::unshift

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

SplDoublyLinkedList::unshiftPrepends the doubly linked list with an element

Descrizione

public SplDoublyLinkedList::unshift(mixed $value): void

Prepends value at the beginning of the doubly linked list.

Elenco dei parametri

value

The value to unshift.

Valori restituiti

Nessun valore viene restituito.