array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'mongodb-bson-regex.tostring.php', 1 => 'MongoDB\\BSON\\Regex::__toString', ), 'up' => array ( 0 => 'class.mongodb-bson-regex.php', 1 => 'MongoDB\\BSON\\Regex', ), 'prev' => array ( 0 => 'mongodb-bson-regex.serialize.php', 1 => 'MongoDB\\BSON\\Regex::serialize', ), 'next' => array ( 0 => 'mongodb-bson-regex.unserialize.php', 1 => 'MongoDB\\BSON\\Regex::unserialize', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/bson/regex/tostring.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(mongodb >=1.0.0)
MongoDB\BSON\Regex::__toString — Returns the string representation of this Regex
Esta função não possui parâmetros.
Returns the string representation of this Regex.
Exemplo #1 MongoDB\BSON\Regex::__toString() example
<?php
$regex = new MongoDB\BSON\Regex('regex', 'i');
var_dump((string) $regex);
?>
O exemplo acima produzirá:
string(8) "/regex/i"