MongoDB\BSON\Regex::getFlags

(mongodb >=1.0.0)

MongoDB\BSON\Regex::getFlagsReturns the Regex's flags

Opis

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

Parametry

Ta funkcja nie posiada parametrów.

Zwracane wartości

Returns the Regex's flags.

Błędy/Wyjątki

Przykłady

Przykład #1 MongoDB\BSON\Regex::getFlags() example

<?php

$regex 
= new MongoDB\BSON\Regex('regex''i');
var_dump($regex->getFlags());

?>

Powyższy przykład wyświetli coś podobnego do:

string(1) "i"
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top