tp5.1 where in 写法

//写法1:
$data = array();
$data['id'] = array('in','4');
$tag = $tag->where($data)->select();

//写法2:
$tag = $tag->where(array('id'=>array('in','4')))->select();
$tag = $tag->where(array('id'=>array('in',array('4'))))->select();
posted @ 2020-06-29 17:46  makalo  阅读(5731)  评论(0编辑  收藏  举报