xxxx日本护士丰满hd|亚洲av日韩av无码av欧美av|精品国产污污网站在线看免费|日日摸日日碰夜夜爽久久|国产一区二区亚洲精品

ArrayIterator 類(lèi)

(PHP 5, PHP 7, PHP 8)

簡(jiǎn)介

這個(gè)迭代器允許在遍歷數組和對象時(shí)刪除和更新值與鍵。

當你想多次遍歷相同數組時(shí)你需要實(shí)例化 ArrayObject,然后讓這個(gè)實(shí)例創(chuàng )建一個(gè) ArrayIterator 實(shí)例。 當你想遍歷相同數組時(shí)多次你需要實(shí)例 ArrayObject 并且讓這個(gè)實(shí)例創(chuàng )建一個(gè) ArrayIterator 實(shí)例,然后使用 foreach 或者手動(dòng)調用 getIterator() 方法。

類(lèi)摘要

class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Countable {
/* 常量 */
const int STD_PROP_LIST = 1;
const int ARRAY_AS_PROPS = 2;
/* 方法 */
public __construct(array|object $array = [], int $flags = 0)
public append(mixed $value): void
public asort(int $flags = SORT_REGULAR): bool
public count(): int
public current(): mixed
public getArrayCopy(): array
public getFlags(): int
public key(): string|int|null
public ksort(int $flags = SORT_REGULAR): bool
public natcasesort(): bool
public natsort(): bool
public next(): void
public offsetExists(mixed $key): bool
public offsetGet(mixed $key): mixed
public offsetSet(mixed $key, mixed $value): void
public offsetUnset(mixed $key): void
public rewind(): void
public seek(int $offset): void
public serialize(): string
public setFlags(int $flags): void
public uasort(callable $callback): bool
public uksort(callable $callback): bool
public unserialize(string $data): void
public valid(): bool
}

預定義常量

ArrayIterator 標記

ArrayIterator::STD_PROP_LIST

Properties of the object have their normal functionality when accessed as list (var_dump, foreach, etc.).

ArrayIterator::ARRAY_AS_PROPS

可以通過(guò)屬性訪(fǎng)問(wèn)條目(讀寫(xiě)都支持)。

目錄

xxxx日本护士丰满hd|亚洲av日韩av无码av欧美av|精品国产污污网站在线看免费|日日摸日日碰夜夜爽久久|国产一区二区亚洲精品