查询语句中使用数组作为参数。
$cate[] = $cid;//$cate为一个数组 $where['cid'] = array('in',$cate);//cid在这个数组中, M('category')->where($where)->delete();//$where作为条件传进来