Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<MongoDB\BSON\PackedArray::hasMongoDB\BSON\PackedArray::offsetGet>
^MongoDB\BSON\PackedArrayLast updated: Mon, 26 Oct 2026

MongoDB\BSON\PackedArray::offsetExists

(mongodb >=1.17.0)

MongoDB\BSON\PackedArray::offsetExists — Returns whether a index is present in the array

Description

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

Parameters

key

The index to look for in the array.

Return Values

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

See Also


<MongoDB\BSON\PackedArray::hasMongoDB\BSON\PackedArray::offsetGet>
^MongoDB\BSON\PackedArrayLast updated: Mon, 26 Oct 2026