array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'mongodb-bson-regex.getflags.php', 1 => 'MongoDB\\BSON\\Regex::getFlags', ), 'up' => array ( 0 => 'class.mongodb-bson-regex.php', 1 => 'MongoDB\\BSON\\Regex', ), 'prev' => array ( 0 => 'mongodb-bson-regex.construct.php', 1 => 'MongoDB\\BSON\\Regex::__construct', ), 'next' => array ( 0 => 'mongodb-bson-regex.getpattern.php', 1 => 'MongoDB\\BSON\\Regex::getPattern', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/bson/regex/getflags.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(mongodb >=1.0.0)
MongoDB\BSON\Regex::getFlags — Returns the Regex's flags
This function has no parameters.
Returns the Regex's flags.
Example #1 MongoDB\BSON\Regex::getFlags() example
<?php
$regex = new MongoDB\BSON\Regex('regex', 'i');
var_dump($regex->getFlags());
?>
The above example will output something similar to:
string(1) "i"