title: getting the value of array key in codeigniter
body: <p>I have the following line in my controller:</p>
  
  <pre><code>$data['faq'] = $this-&gt;faqModel-&gt;get();  
  </code></pre>
  
  <p>This data print the following using the print_r</p>
  
  <pre><code>    Array
  (
  [faq] =&gt; Array
      (
          [0] =&gt; Array
              (
                  [faqid] =&gt; 12
                  [catid] =&gt; 122
                  [question] =&gt; How this CMS works
                  [question_en] =&gt; How this CMS works
                  [answer] =&gt; How this CMS works?
                  [answer_en] =&gt; How this CMS works?
  
                  [sorder] =&gt; 2
                  [visible] =&gt; 1
              )
  
          [1] =&gt; Array
              (
                  [faqid] =&gt; 8
                  [catid] =&gt; 121
                  [question] =&gt; How does the design cost?
                  [question_en] =&gt; How does the design cost?
                  [answer] =&gt; How does the design cost?
  
                  [answer_en] =&gt; How does the design cost?
  
                  [sorder] =&gt; 1
                  [visible] =&gt; 1
              )
  
      )
  
  )
  </code></pre>
  
  <p>I want to use the value stored in the [catid] key, and I am trying to do something like:
  $data['faq']['catid'] to get that value in the controller (I want to make another select with that value) But I am getting with this error message: Undefined index: catid</p>
  
  <p>Anyone can help me to get the value of ['catid']???</p>
  
  <p>Regards, Zoran</p>