MongoDB\BSON\PackedArray::has

Returns whether a index is present in the array

説明

final public bool MongoDB\BSON\PackedArray::has(int $index)

パラメータ

index (int)

The index to look for in the array.

戻り値

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

エラー / 例外

  • Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.

参考