MongoDB\BSON\Binary::getType

(mongodb >=1.0.0)

MongoDB\BSON\Binary::getTypeReturns the Binary's type

˵��

final public MongoDB\BSON\Binary::getType ( void ) : int

����

�˺���û�в�����

����ֵ

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());

?>

�������̻������

int(0)

�μ�