splqueue.setiteratormode.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 88 行
HTML
88 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Sets the mode of iteration</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="class.splqueue.html">SplQueue</a></div> <div class="next" style="text-align: right; float: right;"><a href="class.splheap.html">SplHeap</a></div> <div class="up"><a href="class.splqueue.html">SplQueue</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="splqueue.setiteratormode" class="refentry"> <div class="refnamediv"> <h1 class="refname">SplQueue::setIteratorMode</h1> <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">SplQueue::setIteratorMode</span> — <span class="dc-title">Sets the mode of iteration</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type"><span class="type void">void</span></span> <span class="methodname"><b><b>SplQueue::setIteratorMode</b></b></span> ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$mode</tt></span> )</div> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">mode</tt></i></span> <dd> <p class="para"> There is only one iteration parameter you can modify. </p> <ul class="itemizedlist"> <li class="listitem"> <span class="simpara">The behavior of the iterator (either one or the other):</span> <ul class="itemizedlist"> <li class="listitem"><span class="simpara">SplDoublyLnkedList::IT_MODE_DELETE (Elements are deleted by the iterator)</span></li> <li class="listitem"><span class="simpara">SplDoublyLnkedList::IT_MODE_KEEP (Elements are traversed by the iterator)</span></li> </ul> </li> </ul> <p class="para"> The default mode is 0x0 : SplDoublyLnkedList::IT_MODE_FIFO | SplDoublyLnkedList::IT_MODE_KEEP </p> <div class="warning"><b class="warning">Warning</b> <p class="para"> The direction of iteration can no longer be changer for SplQueues. Trying to do so will result in a <b class="classname">RuntimeException</b> being thrown. </p> </div> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> No value is returned. </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="class.splqueue.html">SplQueue</a></div> <div class="next" style="text-align: right; float: right;"><a href="class.splheap.html">SplHeap</a></div> <div class="up"><a href="class.splqueue.html">SplQueue</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?