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::jsonSerializeMongoDB\BSON\Binary::__toString>
^MongoDB\BSON\BinaryLast updated: Mon, 26 Oct 2026

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

final public function MongoDB\BSON\Binary::toArray(): array

Parameters

This function has no parameters.

Return Values

Returns an array containing the vector data.

Errors/Exceptions

See Also


<MongoDB\BSON\Binary::jsonSerializeMongoDB\BSON\Binary::__toString>
^MongoDB\BSON\BinaryLast updated: Mon, 26 Oct 2026