|
ArrayIterator クラスはじめにこのイテレータは、配列やオブジェクトを反復処理する際に 値やキーを修正したり、要素を削除することができます。
同じ配列を何度も反復処理したい場合は、
ArrayObject のインスタンスとそれを参照する
ArrayIterator のインスタンスを作成し、
クラス概要
ArrayIterator
implements
SeekableIterator
ArrayAccess
Serializable
Countable
/* 定数 */
public
const
int
ArrayIterator::STD_PROP_LIST;
public
const
int
ArrayIterator::ARRAY_AS_PROPS;
/* メソッド */
public __construct(arrayobject
$array = [], int $flags = 0)public void append(mixed
$value)public true asort(int
$flags = SORT_REGULAR)public int count()
public mixed current()
public array getArrayCopy()
public int getFlags()
public stringintnull key()
public true ksort(int
$flags = SORT_REGULAR)public true natcasesort()
public true natsort()
public void next()
public bool offsetExists(mixed
$key)public mixed offsetGet(mixed
$key)public void offsetSet(mixed
$key, mixed $value)public void offsetUnset(mixed
$key)public void rewind()
public void seek(int
$offset)public string serialize()
public void setFlags(int
$flags)public true uasort(callable
$callback)public true uksort(callable
$callback)public void unserialize(string
$data)public bool valid()
定義済み定数ArrayIterator のフラグ
|