(mongodb >=1.0.0)
MongoDB\BSON\Binary::getData — Returns the Binary's data
此函數(shù)沒有參數(shù)。
Returns the Binary's data.
示例 #1 MongoDB\BSON\Binary::getData() example
<?php
$binary = new MongoDB\BSON\Binary('foo', MongoDB\BSON\Binary::TYPE_GENERIC);
var_dump($binary->getData());
?>
以上例程會輸出:
string(3) "foo"