<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Peeks at the node from the top of the queue</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="splpriorityqueue.setextractflags.html">SplPriorityQueue::setExtractFlags</a></div> <div class="next" style="text-align: right; float: right;"><a href="splpriorityqueue.valid.html">SplPriorityQueue::valid</a></div> <div class="up"><a href="class.splpriorityqueue.html">SplPriorityQueue</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="splpriorityqueue.top" class="refentry"> <div class="refnamediv"> <h1 class="refname">SplPriorityQueue::top</h1> <p class="verinfo">(PHP 5 >= 5.3.0)</p><p class="refpurpose"><span class="refname">SplPriorityQueue::top</span> — <span class="dc-title">Peeks at the node from the top of the queue</span></p> </div> <div class="refsect1 description" id="refsect1-splpriorityqueue.top-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>SplPriorityQueue::top</strong></span> ( <span class="methodparam">void</span> )</div> </div> <div class="refsect1 parameters" id="refsect1-splpriorityqueue.top-parameters"> <h3 class="title">Parameters</h3> <p class="para">This function has no parameters.</p> </div> <div class="refsect1 returnvalues" id="refsect1-splpriorityqueue.top-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> The value or priority (or both) of the top node, depending on the extract flag. </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="splpriorityqueue.setextractflags.html">SplPriorityQueue::setExtractFlags</a></div> <div class="next" style="text-align: right; float: right;"><a href="splpriorityqueue.valid.html">SplPriorityQueue::valid</a></div> <div class="up"><a href="class.splpriorityqueue.html">SplPriorityQueue</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>