(mongodb >=1.0.0)
MongoDB\BSON\Regex::__toString — Returns the string representation of this Regex
锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷
Returns the string representation of this Regex.
Example #1 MongoDB\BSON\Regex::__toString() example
<?php
$regex = new MongoDB\BSON\Regex('regex', 'i');
var_dump((string) $regex);
?>
锟斤拷锟斤拷锟斤拷锟教伙拷锟斤拷锟斤拷锟�
string(8) "/regex/i"