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

SplDoublyLinkedList::push

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

SplDoublyLinkedList::pushPushes an element at the end of the doubly linked list

说明

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

Pushes value at the end of the doubly linked list.

参数

value

The value to push.

返回值

没有返回值。