MongoDB\BSON\Document::offsetUnset

Implementation of ArrayAccess

Description

final public void MongoDB\BSON\Document::offsetUnset(mixed $key)

Unsets the value at the specified index.

Parameters

key

The index being unset.

Return Values

No value is returned.

Errors/Exceptions

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