(PECL mongo >= 0.8.1)
MongoRegex::__toString — A string representation of this regular expression
Returns a string representation of this regular expression.
Această funcție nu are parametri.
This regular expression in the form "/expr/flags".
Example #1 MongoRegex::__toString() example
<?php
$r = new MongoRegex( "/[a-fA-F0-9]{16}/g" );
echo $r->regex . "\n";
echo $r->flags . "\n";
echo "$r\n";
?>
Exemplul de mai sus va afișa ceva similar cu:
[a-fA-F0-9]{16} g /[a-fA-F0-9]{16}/g