(PECL mongo >= 0.8.1)
MongoRegex::__toString — A string representation of this regular expression
This extension that defines this method is deprecated. Instead, the MongoDB extension should be used. Alternatives to this method include:
Returns a string representation of this regular expression.
Diese Funktion besitzt keine Parameter.
This regular expression in the form "/expr/flags".
Beispiel #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";
?>
Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
[a-fA-F0-9]{16} g /[a-fA-F0-9]{16}/g