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