(PECL mongo >= 0.8.1)
MongoRegex::__toString — نمایش رشتهای عبارت منظم
نمایش رشتهای عبارت منظم.
This function has no parameters.
عبارت منظم به شکل "/expr/flags".
Example #1 مثال MongoRegex::__toString()
<?php
$r = new MongoRegex( "/[a-fA-F0-9]{16}/g" );
echo $r->regex . "\n";
echo $r->flags . "\n";
echo "$r\n";
?>
The above example will output something similar to:
[a-fA-F0-9]{16} g /[a-fA-F0-9]{16}/g