php8.5
Home/ Manual/ bson / objectidinterface/ MongoDB\BSON\ObjectIdInterface::__toString

MongoDB\BSON\ObjectIdInterface::__toString

PHP function Edit on GitHub ✎

(mongodb >=1.3.0)

Returns the hexadecimal representation of this ObjectIdInterface

Description

MongoDB\BSON\ObjectIdInterface::__toString(): string

Parameters Parameters

Return Values

Returns the hexadecimal representation of this ObjectIdInterface.

See Also

  • MongoDB\BSON\ObjectId::__toString

Source: reference/mongodb/bson/objectidinterface/tostring.xml · from the official PHP manual (php/doc-en)