|
MongoDB\BSON\Regex::__constructConstruct a new Regex Beschreibung
final public MongoDB\BSON\Regex::__construct
( string
$pattern
[, string $flags = ""
] )
Parameter-Liste
Fehler/Exceptions
Changelog
BeispieleBeispiel #1 MongoDB\BSON\Regex::__construct example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
object(MongoDB\BSON\Regex)#1 (2) {
["pattern"]=>
string(4) "^foo"
["flags"]=>
string(1) "i"
}
Siehe auch |