MongoDB\BSON\Binary::getData

(mongodb >=1.0.0)

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

Opis

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

Parametry

Ta funkcja nie posiada parametrów.

Zwracane wartości

Returns the Binary's data.

Błędy/Wyjątki

Przykłady

Przykład #1 MongoDB\BSON\Binary::getData() example

<?php

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

?>

Powyższy przykład wyświetli:

string(3) "foo"

Zobacz też:

add a note add a note

User Contributed Notes

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