|
MongoDB\BSON\ObjectId::__constructConstruct a new ObjectId Description
final public MongoDB\BSON\ObjectId::__construct(stringnull
$id = null )Parameters
Errors/Exceptions
ExamplesExample #1 MongoDB\BSON\ObjectId::__construct example
The 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" } |