MongoDB\BSON\PackedArray::offsetExists

Returns whether a index is present in the array

説明

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

パラメータ

key

The index to look for in the array.

戻り値

Returns true if the index is present in the array and false otherwise.

参考

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