|
MongoDB\BSON\Binary::__constructConstruct a new Binary Description
final public MongoDB\BSON\Binary::__construct(string
$data , int $type = MongoDB\BSON\Binary::TYPE_GENERIC)Parameters
Errors/Exceptions
Changelog
ExamplesExample #1 MongoDB\BSON\Binary::__construct example
The above example will output: object(MongoDB\BSON\Binary)#1 (2) { ["data"]=> string(3) "foo" ["type"]=> int(0) } See Also |