(PECL mongo >= 0.8.1)
MongoRegex::__toString — 锟斤拷锟斤拷锟斤拷式锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷锟绞�
This extension that defines this method is deprecated. Instead, the MongoDB extension should be used. Alternatives to this method include:
锟斤拷锟截革拷锟斤拷锟斤拷锟斤拷式锟斤拷锟街凤拷锟斤拷锟斤拷示锟斤拷式锟斤拷
锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷
锟斤拷 "/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";
?>
锟斤拷锟斤拷锟斤拷锟教碉拷锟斤拷锟斤拷锟斤拷锟斤拷冢锟�
[a-fA-F0-9]{16} g /[a-fA-F0-9]{16}/g