array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'mongodb-bson-packedarray.has.php', 1 => 'MongoDB\\BSON\\PackedArray::has', 2 => 'Returns whether a index is present in the array', ), 'up' => array ( 0 => 'class.mongodb-bson-packedarray.php', 1 => 'MongoDB\\BSON\\PackedArray', ), 'prev' => array ( 0 => 'mongodb-bson-packedarray.getiterator.php', 1 => 'MongoDB\\BSON\\PackedArray::getIterator', ), 'next' => array ( 0 => 'mongodb-bson-packedarray.offsetexists.php', 1 => 'MongoDB\\BSON\\PackedArray::offsetExists', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/bson/packedarray/has.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

MongoDB\BSON\PackedArray::has

(mongodb >=1.16.0)

MongoDB\BSON\PackedArray::hasReturns whether a index is present in the array

Опис

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

Параметри

index (int)

The index to look for in the array.

Значення, що повертаються

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

Помилки/виключення

Прогляньте також