|
MongoDB\BSON\ObjectID::__constructConstruct a new ObjectID Description
final public MongoDB\BSON\ObjectID::__construct
([ string
$id
] )
Parameters
Errors/Exceptions
ExamplesExample #1 MongoDB\BSON\ObjectID::__construct example
<?phpThe above example will output something similar to:
object(MongoDB\BSON\ObjectID)#1 (1) {
["oid"]=>
string(24) "56732d3dda14d81214634921"
}
object(MongoDB\BSON\ObjectID)#1 (1) {
["oid"]=>
string(24) "000000000000000000000001"
}
|