array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'mongodb-bson-binary.toarray.php', 1 => 'MongoDB\\BSON\\Binary::toArray', 2 => 'Returns the vector as an array for a Binary with subtype MongoDB\\BSON\\Binary::SUBTYPE_VECTOR', ), 'up' => array ( 0 => 'class.mongodb-bson-binary.php', 1 => 'MongoDB\\BSON\\Binary', ), 'prev' => array ( 0 => 'mongodb-bson-binary.jsonserialize.php', 1 => 'MongoDB\\BSON\\Binary::jsonSerialize', ), 'next' => array ( 0 => 'mongodb-bson-binary.tostring.php', 1 => 'MongoDB\\BSON\\Binary::__toString', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/bson/binary/toarray.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

MongoDB\BSON\Binary::toArray

(mongodb >=2.2.0)

MongoDB\BSON\Binary::toArrayReturns the vector as an array for a Binary with subtype MongoDB\BSON\Binary::SUBTYPE_VECTOR

Description

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

Parameters

This function has no parameters.

Return Values

Returns an array containing the vector data.

Errors/Exceptions

See Also