THINKPHP like between 的array用法

    if($title != ''){
$_where['title'] = array('LIKE', '%'.$title.'%');
}
if('' !=$url){
  $_where['url'] = array('LIKE', '%'.$url.'%');
}
if(0<$start_time && $start_time<$end_time){
   $_where['create_time'] = array('between',array($start_time,$end_time));
}

猜你喜欢

转载自blog.csdn.net/lunsunhuan1825/article/details/73800362