MongoDB\BSON\Document::offsetUnset
PHP function
Edit on GitHub ✎
(mongodb >=1.17.0)
Implementation of ArrayAccess
Description
MongoDB\BSON\Document::offsetUnset(mixed $key): void
Unsets the value at the specified index.
Parameters
keyThe index being unset.
Return Values
Void
Errors/Exceptions
- Always throws a
MongoDB\Driver\Exception\LogicException.