MongoDB\BSON\Regex::__toString

(mongodb >=1.0.0)

MongoDB\BSON\Regex::__toStringReturns the string representation of this Regex

说锟斤拷

final public MongoDB\BSON\Regex::__toString ( void ) : string

锟斤拷锟斤拷

锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷

锟斤拷锟斤拷值

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"

锟轿硷拷