好吧,这个问题措辞有点尴尬,但我希望这能解决问题。我有这个示例二维数组。$array=array(array(1,0,0,0,1,0,0,1),array(0,0,1,1,1,1,0,1),array(0,1,1,0,1,0,0,0),array(0,1,1,0,0,0,1,0),array(1,0,0,0,1,1,1,1),array(0,1,1,0,1,0,1,0),array(0,0,0,0,0,0,0,1));当按行迭代(并以\n结束每一行),然后对每一行按列迭代时,它将回显如下内容:(░░=0,↓↓=1)▓▓░░░░░░▓▓░░░░▓▓░░░░▓▓▓▓▓▓▓▓░░▓▓░░▓▓
我在CodeIgniter的表上运行update_batch(),我想检查它是否成功。我试过使用affected_rows(),但它只计算已修改的表单字段的数量,所以它并没有完全减少它:$this->db->update_batch("sections",$data,"alias");log_message("debug","itemsinform:".count($data));//itemsinform:3log_message("debug","rowsupdated:".$this->db->affected_rows());//rowsupdated:0-3//dependi