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\Binary::__toStringMongoDB\BSON\Decimal128>
^MongoDB\BSONLast updated: Mon, 26 Oct 2026

The MongoDB\BSON\VectorType enum

(mongodb >=2.2.0)

Introduction

The MongoDB\BSON\VectorType enum is used to specify the type of vector data stored in a MongoDB\BSON\Binary with subtype MongoDB\BSON\Binary::TYPE_VECTOR.

Enum synopsis

enum MongoDB\BSON\VectorType
{
case Float32 ; // Each element in the vector is a 32-bit floating point value.

case Int8 ; // Each element in the vector is an 8-bit integer value.

case PackedBit ; // Each element in the vector is a 1-bit value. When creating vectors of this type, you may pass either bool or 1-bit int values, i.e. 0 or 1.

}

<MongoDB\BSON\Binary::__toStringMongoDB\BSON\Decimal128>
^MongoDB\BSONLast updated: Mon, 26 Oct 2026