(mongodb >=1.2.0)
MongoDB\BSON\Regex::jsonSerialize — Returns a representation that can be converted to JSON
Esta función no tiene parámetros.
Returns data which can be serialized by json_encode() to produce the » extended JSON representation of the MongoDB\BSON\Regex.