php8.5
Home/ Manual/ bson / packedarray/ MongoDB\BSON\PackedArray::offsetSet

MongoDB\BSON\PackedArray::offsetSet

PHP function Edit on GitHub ✎

(mongodb >=1.17.0)

Implementation of ArrayAccess

Description

MongoDB\BSON\PackedArray::offsetSet(mixed $key, mixed $value): void

Sets the value at the specified key to value.

Parameters

key

The index being set.

value

The new value for the key.

Return Values

Void

Errors/Exceptions

  • Always throws a MongoDB\Driver\Exception\LogicException.

Source: reference/mongodb/bson/packedarray/offsetset.xml · from the official PHP manual (php/doc-en)