MongoDB\BSON\Document::offsetExists

Returns whether a key is present in the document

説明

final public bool MongoDB\BSON\Document::offsetExists(mixed $key)

パラメータ

key

The key to look for in the document.

戻り値

Returns true if the key is present in the document and false otherwise.

参考

  • ArrayAccess::offsetExists
  • MongoDB\BSON\Document::has