简体   繁体   中英

using where_in codeigniter multidimensional array

can this be possible using multi dimensional array in where_in codeigniter

 $arr = array(
        array(
            'recipient_id' => 1,
            'group_id' => 26,
            ),
        array(
            'recipient_id' => 3,
            'group_id' => 26,
            ),
        array(
            'recipient_id' => 4,
            'group_id' => 26,
            ),
        );

I am not so clear but in codeigniter the where in can be written as follows:

$arr=array('test','test1');
$this->db->or_where_in('name', $arr);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM