CakeFest 2024: The Official CakePHP Conference

MongoDB\BSON\Binary::getData

(mongodb >=1.0.0)

MongoDB\BSON\Binary::getDataReturns the Binary's data

Beschreibung

final public MongoDB\BSON\Binary::getData(): string

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

Returns the Binary's data.

Fehler/Exceptions

Beispiele

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

<?php

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

?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

string(3) "foo"

Siehe auch

add a note

User Contributed Notes

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