note 119955 added to class.mongodb-bson-regex
| From: | aws dot htc at gmail dot com | Date: | Tue, 27 Sep 2016 18:26:13 +0000 |
| Subject: | note 119955 added to class.mongodb-bson-regex | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206687@lists.php.net to get a copy of this message | ||
Example
Find names that start with "Al"
$regex = new MongoDB\BSON\Regex ( '^Al');
$cursor = $collection->find(array('name' => $regex));
//iterate through the cursor
----
Server IP: 72.52.91.14
Probable Submitter: 96.55.55.197
----
Manual Page -- http://php.net/manual/en/class.mongodb-bson-regex.php
Edit -- https://master.php.net/note/edit/119955
Del: integrated -- https://master.php.net/note/delete/119955/integrated
Del: useless -- https://master.php.net/note/delete/119955/useless
Del: bad code -- https://master.php.net/note/delete/119955/bad+code
Del: spam -- https://master.php.net/note/delete/119955/spam
Del: non-english -- https://master.php.net/note/delete/119955/non-english
Del: in docs -- https://master.php.net/note/delete/119955/in+docs
Del: other reasons-- https://master.php.net/note/delete/119955
Reject -- https://master.php.net/note/reject/119955
Search -- https://master.php.net/manage/user-notes.php