<TKey is array-key, TValue>
extends |
Arrayable<TKey|int, TValue>, Traversable<TKey, TValue> |
---|
An iterator with a fluent interface
Methods | ||
---|---|---|
public
|
toArray(bool $preserveKeys = true): ($preserveKeys is true ? array<TKey, TValue> : list<TValue>)
|
# |
public
|
forEach(callable(TValue, TKey): mixed $callback): $this
|
# |
public
|
nextWithValue(array-key $key, mixed $value, bool $strict = false): TValue|null
|
# |