php8.5
Home/ Manual/ bson / regex/ MongoDB\BSON\Regex::jsonSerialize

MongoDB\BSON\Regex::jsonSerialize

PHP function Edit on GitHub ✎

(mongodb >=1.2.0)

Returns a representation that can be converted to JSON

Description

MongoDB\BSON\Regex::jsonSerialize(): mixed

Parameters Parameters

Return Values

Returns data which can be serialized by json_encode() to produce an extended JSON representation of the MongoDB\BSON\Regex.

Extended-json

Errors/Exceptions

See Also

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