MongoDB\BSON\Regex::serialize

Serialize a Regex

Description

final public string MongoDB\BSON\Regex::serialize ( void )

Parameters

This function has no parameters.

Return Values

Returns the serialized representation of the MongoDB\BSON\Regex.

Errors/Exceptions

  • Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.

See Also