title: access to array into controller codeigniter
body: <p>i have a problem, this is my model, return many columns, for example (cert_num) :</p>
  
  <pre><code>$this-&gt;db-&gt;select('*');
  $this-&gt;db-&gt;from('certificado_asegurado');
  $this-&gt;db-&gt;where('certificado_asegurado.cert_id', $search_string);
  $query = $this-&gt;db-&gt;get();
  return $query-&gt;result_array();
  </code></pre>
  
  <p>Now, in my controller i need do other query to other model, but with "cert_num" valor return:</p>
  
  <pre><code>$data['certificado'] = $this-&gt;certificado_model-&gt;get_certificado($search_string);
  $cert_num=$data['certificado']['cert_num']-&gt;cert_num; //not work
  $cert_num= $certificado['cert_num']; //not work
  $cert_num=$data['certificado']['cert_num']; //not work
  </code></pre>
  
  <p>I need $cert_num valor for send to model</p>
  
  <pre><code>$data['user'] = $this-&gt;certificado_model-&gt;get_user($cert_num);
  </code></pre>
  
  <p>Any solution please, to retry with foreach but not work. Thanks.</p>