title: How access the data from an associative array Codeigniter
body: <p>I am new to PHP and codeigniter I have recently written a query in the model which is return as expected. The var_dump of the data array from the controller looks like</p>
  
  <p><code>array(1){ 
      ["industry"]=&gt; array(1) { 
          [0]=&gt; array(3) { 
              ["id"]=&gt; string(1) "1" 
              ["title"]=&gt; string(11) "Recruitment" 
              ["active"]=&gt; string(1) "1" 
          } 
      } 
  }</code> </p>
  
  <p>From the view I have tried using a foreach based on industries but am not getting anywhere when trying to access the arrays length and items. Your experience and guidance is much appreciated.</p>