The MongoDB\BSON\Regex class

(mongodb >=1.0.0)

Введение

Обзор классов

MongoDB\BSON\Regex implements MongoDB\BSON\Type {
/* Методы */
final public __construct ( string $pattern , string $flags )
final public ReturnType getFlags ( void )
final public string getPattern ( void )
final public string __toString ( void )
}

Содержание

Коментарии

Example
Find names that start with "Al"

$regex = new MongoDB\BSON\Regex ( '^Al');
$cursor = $collection->find(array('name' => $regex));
//iterate through the cursor
2016-09-27 21:26:11
http://php5.kiev.ua/manual/ru/class.mongodb-bson-regex.html
Автор:
Refer the example at: 
http://docs.php.net/manual/en/mongodb-bson-regex.construct.php#refsect1-mongodb-bson-regex.construct-examples
2017-07-08 15:28:27
http://php5.kiev.ua/manual/ru/class.mongodb-bson-regex.html

    Поддержать сайт на родительском проекте КГБ