PHP 8.1.28 Released!

MongoDB\BSON\Binary::getType

(mongodb >=1.0.0)

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

Descripción

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

Parámetros

Esta función no tiene parámetros.

Valores devueltos

Returns the Binary's type.

Errores/Excepciones

Ejemplos

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

<?php

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

?>

El resultado del ejemplo sería:

int(0)

Ver también

add a note

User Contributed Notes

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