php二维数组查询赋值

2024-12-02 10:59:22
推荐回答(1个)
回答1:

$arr = array(
'0' => array('id'=>1,'openid'=>1);
'1' => array('id'=>2,'openid'=>2);
)
foreach($arr as $key => $val){
select * from 表 where 字段 = $val['openid']
}