MongoDB\BSON\Binary::toArray
(mongodb >=2.2.0)
MongoDB\BSON\Binary::toArray — Returns the vector as an array for a Binary with subtype MongoDB\BSON\Binary::SUBTYPE_VECTOR
Description
Parameters
This function has no parameters.
Return Values
Returns an array containing the vector data.
Errors/Exceptions
- Throws MongoDB\Driver\Exception\LogicException if the subtype is not
MongoDB\BSON\Binary::SUBTYPE_VECTOR. - Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.
See Also
- MongoDB\BSON\Binary::fromVector() - Creates a new binary with subtype MongoDB\BSON\Binary::SUBTYPE_VECTOR from the given array and vector type
- » BSON Types
↑ and ↓ to navigate • Enter to select • Esc to close • / to open