MongoRegex::__constructCreates a new regular expression Description
public MongoRegex::__construct
( string
$regex
)Creates a new regular expression. Parameters
Return ValuesReturns a new regular expression. Examples
Example #1 MongoRegex::__construct example This example uses a regular expression to query for all documents with a username field starting (^) with an l and a vowel ([aeiouy]), case-insensitive (/i).
<?php See Also
|