note 113975 added to class.mongoregex

From: Date: Tue, 24 Dec 2013 15:17:17 +0000
Subject: note 113975 added to class.mongoregex
Groups: php.notes 
Request: Send a blank email to php-notes+get-198017@lists.php.net to get a copy of this message
/* Use the "i" option to make searches with Case Insensitive Find results beginning with $q */ $search = "V"; // Case Sensitive $where = array('name' => array('$regex' => new MongoRegex("/^$search/"))); $cursor = $collection->find($where); //Case Insensitive $where = array('name' => array('$regex' => new MongoRegex("/^$search/i"))); $cursor = $collection->find($where); ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/class.mongoregex.php Edit -- https://master.php.net/note/edit/113975 Del: integrated -- https://master.php.net/note/delete/113975/integrated Del: useless -- https://master.php.net/note/delete/113975/useless Del: bad code -- https://master.php.net/note/delete/113975/bad+code Del: spam -- https://master.php.net/note/delete/113975/spam Del: non-english -- https://master.php.net/note/delete/113975/non-english Del: in docs -- https://master.php.net/note/delete/113975/in+docs Del: other reasons-- https://master.php.net/note/delete/113975 Reject -- https://master.php.net/note/reject/113975 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198017) next »