array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'splheap.top.php', 1 => 'SplHeap::top', 2 => 'Peeks at the node from the top of the heap', ), 'up' => array ( 0 => 'class.splheap.php', 1 => 'SplHeap', ), 'prev' => array ( 0 => 'splheap.rewind.php', 1 => 'SplHeap::rewind', ), 'next' => array ( 0 => 'splheap.valid.php', 1 => 'SplHeap::valid', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/spl/splheap/top.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
SplHeap::top — Peeks at the node from the top of the heap
此函数没有参数。
The value of the node on the top.
Throws RuntimeException when the data-structure is empty.