MongoDB\BSON\Regex::__toString
(mongodb >=1.0.0)
MongoDB\BSON\Regex::__toString — Returns the string representation of this Regex
说明
参数
此函数没有参数。
返回值
Returns the string representation of this Regex.
示例
示例 #1 MongoDB\BSON\Regex::__toString() example
<?php
$regex = new MongoDB\BSON\Regex('regex', 'i');
var_dump((string) $regex);
?>
以上示例会输出:
string(8) "/regex/i"
参见
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/mongodb-bson-regex.tostring.php