MongoDB\BSON\Binary::__toString

(mongodb >=1.2.0)

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

˵��

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

�˷����Ǹ÷����ı����� MongoDB\BSON\Binary::getData().

����

�˺���û�в�����

����ֵ

Returns the Binary's data.

����

Example #1 MongoDB\BSON\Binary::__toString() example

<?php

var_dump
((string) new MongoDB\BSON\Binary('foo'MongoDB\BSON\Binary::TYPE_GENERIC));

?>

�������̻������

string(3) "foo"

�μ�