php8.5
Home/ Manual/ spl / cachingiterator/ CachingIterator::offsetSet

CachingIterator::offsetSet

PHP function Edit on GitHub ✎

(PHP 5 >= 5.2.0, PHP 7, PHP 8)

The offsetSet purpose

Description

CachingIterator::offsetSet(string $key, mixed $value): void

Func

Parameters

key

The index of the element to be set.

value

The new value for the key.

Return Values

Void

Source: reference/spl/cachingiterator/offsetset.xml · from the official PHP manual (php/doc-en)