MongoDB\BSON\PackedArray::toPHP

Returns the PHP representation of the BSON array

&reftitle.description; final public ``array``object```MongoDB\BSON\PackedArray::toPHP` ``array``null```typeMap`&null;
&reftitle.parameters;
&mongodb.parameter.typeMap;
&reftitle.returnvalues;

The decoded PHP value.

When encountering a value encoded as 64-bit integer in the BSON array, the return value of this method will be a `MongoDB\BSON\Int64` instance.

&reftitle.errors;

- Throws `MongoDB\Driver\Exception\InvalidArgumentException` if a class in the type map cannot be instantiated or does not implement MongoDB\BSON\Unserializable.

&reftitle.seealso;

- `MongoDB\BSON\toPHP`
- BSON Types