(mongodb >=1.0.0)
MongoDB\BSON\Binary::getType — Returns the Binary's type
This function has no parameters.
Returns the Binary's type.
Example #1 MongoDB\BSON\Binary::getType() example
<?php$binary = new MongoDB\BSON\Binary('foo', MongoDB\BSON\Binary::TYPE_GENERIC);var_dump($binary->getType());?>
The above example will output:
int(0)