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
keyThe index being set.
valueThe new value for the
key.
Return Values
Void
Errors/Exceptions
- Always throws a
MongoDB\Driver\Exception\LogicException.