CakeFest 2024: The Official CakePHP Conference

MongoDB\BSON\Binary::getType

(mongodb >=1.0.0)

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

Beschreibung

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

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

Returns the Binary's type.

Fehler/Exceptions

Beispiele

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

<?php

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

?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

int(0)

Siehe auch

add a note

User Contributed Notes

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