(mongodb >=1.0.0)
MongoDB\BSON\Binary::getType — Returns the Binary's type
Această funcție nu are parametri.
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());
?>
Exemplul de mai sus va afișa:
int(0)