-2
使用OR比較用戶名和體驗的正確代碼是什麼?MongoDB OR在PHP中查詢
$regex = new MongoRegex("/".$name."*/i");
$regex2 = new MongoRegex("/".$comm."*/i");
$where = array('$in' => array('username' => array($regex),'experience' => array($regex2)));
$cursor = $collection->find($where)->limit($limit)->skip($skip);