array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ru', ), 'this' => array ( 0 => 'splpriorityqueue.top.php', 1 => 'SplPriorityQueue::top', ), 'up' => array ( 0 => 'class.splpriorityqueue.php', 1 => 'SplPriorityQueue', ), 'prev' => array ( 0 => 'splpriorityqueue.setextractflags.php', 1 => 'SplPriorityQueue::setExtractFlags', ), 'next' => array ( 0 => 'splpriorityqueue.valid.php', 1 => 'SplPriorityQueue::valid', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ru', 'path' => 'reference/spl/splpriorityqueue/top.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
SplPriorityQueue::top — Возвращает узел, находящийся в начале очереди
У этой функции нет параметров.
Значение или приоритет узла (или и то, и другое) в зависимости от установленного флага.