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::__toStringA string representation of this regular expression

Description

public string MongoRegex::__toString ( void )

Returns a string representation of this regular expression.

Parameters

This function has no parameters.

Return Values

This regular expression in the form "/expr/flags".

Examples

Example #1 MongoRegex::__toString() example

<?php

$r 
= new MongoRegex"/[a-fA-F0-9]{16}/g" );
echo 
$r->regex "\n";
echo 
$r->flags "\n";
echo 
"$r\n";

?>

The above example will output something similar to:

[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 | sitemap | contact | advertising | mirror sites