downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

MongoBinData> <MongoRegex::__construct
[edit] Last updated: Fri, 25 May 2012

view this page in

MongoRegex::__toString

(PECL mongo >= 0.8.1)

MongoRegex::__toStringこの正規表現の文字列表現

説明

public string MongoRegex::__toString ( void )

この正規表現の文字列表現を返します。

パラメータ

この関数にはパラメータはありません。

返り値

正規表現を "/expr/flags" 形式で返します。

例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



add a note add a note User Contributed Notes MongoRegex::__toString
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites