|
MongoDB\BSON\Regex::__constructConstruct a new Regex Description
final public MongoDB\BSON\Regex::__construct(string
$pattern , string $flags = "")Parameters
Errors/Exceptions
Changelog
ExamplesExample #1 MongoDB\BSON\Regex::__construct example
The above example will output: object(MongoDB\BSON\Regex)#1 (2) { ["pattern"]=> string(4) "^foo" ["flags"]=> string(1) "i" } |