i have tried to following query with php but doesnot return record
PHP
$keyword = "/.*".$_POST['keyword'].".*/";
$query = array("evnt_name" => $keyword);
if($cursor = $db->mycollname->find($query)){
return $cursor;
}
i have refferd to How to query MongoDB with "like"?