MongoDB\BSON\Binary::getData

(mongodb >=1.0.0)

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

Descrição

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

Parâmetros

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

Valor Retornado

Returns the Binary's data.

Erros

Exemplos

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

<?php

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

?>

O exemplo acima irá imprimir:

string(3) "foo"

Veja Também

add a note add a note

User Contributed Notes

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