<?php include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc'; $TOC = array(); $TOC_DEPRECATED = array(); $PARENTS = array(); include_once dirname(__FILE__) ."/toc/class.spldoublylinkedlist.inc"; $setup = array ( 'home' => array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'spldoublylinkedlist.valid.php', 1 => 'SplDoublyLinkedList::valid', 2 => 'Check whether the doubly linked list contains more nodes', ), 'up' => array ( 0 => 'class.spldoublylinkedlist.php', 1 => 'SplDoublyLinkedList', ), 'prev' => array ( 0 => 'spldoublylinkedlist.unshift.php', 1 => 'SplDoublyLinkedList::unshift', ), 'next' => array ( 0 => 'class.splstack.php', 1 => 'SplStack', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/spl/spldoublylinkedlist/valid.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?> <div id="spldoublylinkedlist.valid" class="refentry"> <div class="refnamediv"> <h1 class="refname">SplDoublyLinkedList::valid</h1> <p class="verinfo">(PHP 5 >= 5.3.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">SplDoublyLinkedList::valid</span> — <span class="dc-title">Check whether the doubly linked list contains more nodes</span></p> </div> <div class="refsect1 description" id="refsect1-spldoublylinkedlist.valid-description"> <h3 class="title">说明</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><strong>SplDoublyLinkedList::valid</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div> <p class="para rdfs-comment"> Checks if the doubly linked list contains any more nodes. </p> </div> <div class="refsect1 parameters" id="refsect1-spldoublylinkedlist.valid-parameters"> <h3 class="title">参数</h3> <p class="para">此函数没有参数。</p> </div> <div class="refsect1 returnvalues" id="refsect1-spldoublylinkedlist.valid-returnvalues"> <h3 class="title">返回值</h3> <p class="para"> Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if the doubly linked list contains any more nodes, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> otherwise. </p> </div> </div><?php manual_footer($setup); ?>