MongoRegex::__construct
MongoBinData
MongoRegex
PHP Manual

# MongoRegex::__toString

(PECL mongo >= 0.8.1)

MongoRegex::__toString — A string representation of this regular expression

### Descripción

public string MongoRegex::__toString ( void )

Returns a string representation of this regular expression.

### Lista de parámetros

This function has no parameters.

### Valores retornados

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

### Ejemplos

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";
?>`

El resultado del ejemplo seria algo similar a:

    [a-fA-F0-9]{16}
    g
    /[a-fA-F0-9]{16}/g

MongoRegex::__construct
MongoBinData
MongoRegex
PHP Manual