MongoRegex::__toString

(PECL mongo >= 0.8.1)

MongoRegex::__toStringA string representation of this regular expression

Descrizione

public MongoRegex::__toString ( void ) : string

Returns a string representation of this regular expression.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

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

Esempi

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

?>

Il precedente esempio visualizzerĂ  qualcosa simile a:

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

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top