downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SplQueue> <SplStack::__construct
[edit] Last updated: Fri, 25 May 2012

view this page in

SplStack::setIteratorMode

(PHP 5 >= 5.3.0)

SplStack::setIteratorMode反復処理のモードを設定する

説明

void SplStack::setIteratorMode ( int $mode )

パラメータ

mode

変更可能な反復処理のパラメータはひとつだけです。

  • イテレータの振る舞い (いずれかを選択)
    • SplDoublyLinkedList::IT_MODE_DELETE (イテレータが要素を削除する)
    • SplDoublyLinkedList::IT_MODE_KEEP (イテレータが要素を順にたどる)

デフォルトのモードは 0x2 : SplDoublyLinkedList::IT_MODE_LIFO | SplDoublyLnkedList::IT_MODE_KEEP です。

警告

反復処理の方向は SplStack では変更できません。 変更しようとすると RuntimeException がスローされます。

返り値

値を返しません。



add a note add a note User Contributed Notes SplStack::setIteratorMode
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites