MongoDB\BSON\Binary::getType

(mongodb >=1.0.0)

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

Descrição

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

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

Returns the Binary's type.

Erros

Exemplos

Exemplo #1 MongoDB\BSON\Binary::getType() example

<?php

$binary 
= new MongoDB\BSON\Binary('foo'MongoDB\BSON\Binary::TYPE_GENERIC);
var_dump($binary->getType());

?>

O exemplo acima irá imprimir:

int(0)

Veja Também

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top