Looking to fetch db results, In databse query like
wise operator used.
$regex = new MongoRegex('/$search/i');
$where = array('contact_name' => $regex);
$users = $collection->find($where);
I am not sure, What went wrong with syntax. Please suggest, I am not able to see the results.