MongoDB\BSON\ObjectID::unserialize
MongoDB\BSON\Regex::__construct
MongoDB\BSON
PHP Manual
The MongoDB\BSON\Regex class
(mongodb >=1.0.0)
Introduction
Class synopsis
MongoDB\BSON\Regex
implements
MongoDB\BSON\Type
,
Serializable
,
JsonSerializable
{
/* Methods */
final
public
__construct
(
string
$pattern
[,
string
$flags
= ""
] )
final
public
string
getFlags
(
void
)
final
public
string
getPattern
(
void
)
final
public
mixed
jsonSerialize
(
void
)
final
public
string
serialize
(
void
)
final
public
string
__toString
(
void
)
final
public
void
unserialize
(
string
$serialized
)
}
Changelog
Version
Description
1.2.0
Implements
Serializable
and
JsonSerializable
.
Table of Contents
MongoDB\BSON\Regex::__construct
— Construct a new Regex
MongoDB\BSON\Regex::getFlags
— Returns the Regex's flags
MongoDB\BSON\Regex::getPattern
— Returns the Regex's pattern
MongoDB\BSON\Regex::jsonSerialize
— Returns a representation that can be converted to JSON
MongoDB\BSON\Regex::serialize
— Serialize a Regex
MongoDB\BSON\Regex::__toString
— Returns the string representation of this Regex
MongoDB\BSON\Regex::unserialize
— Unserialize a Regex
MongoDB\BSON\ObjectID::unserialize
MongoDB\BSON\Regex::__construct
MongoDB\BSON
PHP Manual