MongoDB\BSON\PackedArray::offsetExists
(mongodb >=1.17.0)
MongoDB\BSON\PackedArray::offsetExists — Informa se um índice está presente no array
Descrição
final public MongoDB\BSON\PackedArray::offsetExists(
mixed $key
):
bool
Parâmetros
key
-
O índice a ser procurado no array.
Valor Retornado
Retorna true
se o índice estiver presente no array ou false
caso contrário.