php mysql如何获取数组内的值

时间:2018-05-24 07:15:56

标签: php codeigniter mysqli

array(1) {
  [0] => array(2) {
    ["list_length"] => string(2) "10" 
    ["id"] => array(4) {
      [0] => string(1) "1"
      [1]=> string(2) "10" 
      [2]=> string(1) "3"
      [3]=> string(2) "13"
    }
  }
}

如何在

中获取值1,10,3,13
["id"]=> array(4) {
  [0]=> string(1) "1"
  [1]=> string(2) "10"
  [2]=> string(1) "3"
  [3]=> string(2) "13"
}

我试过了:

public function recieve($data){
    //var_dump($data);
    $ids = $data;
    var_dump($ids);
    $this->db->set('recieve', '1');
    $this->db->where('no', $ids);
    $this->db->update('trainee')`
 }

0 个答案:

没有答案