title: Codeigniter when does result_array() return a single or multi dimensional array?
body: <p>On returning $query->result_array(); <br>
  Sometime I get multiple single arrays like this:</p>
  
  <pre><code>Array
  (
      [user_id] =&gt; 32
      [username] =&gt; johnd
      [cat_id] =&gt; 7
  )
  Array
  (
      [user_id] =&gt; 33
      [username] =&gt; Janed
      [cat_id] =&gt; 6
  
  )
  </code></pre>
  
  <p>While sometimes i get multidimensional arrays like this:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [user_id] =&gt; 33
              [username] =&gt; Janed
              [cat_id] =&gt; 6
          )
  
      [1] =&gt; Array
          (
              [user_id] =&gt; 32
              [username] =&gt; Johnd
              [cat_id] =&gt; 7
          )
  
  )
  </code></pre>
  
  <p>Is it something to do with the query, is there a specificreason for this?</p>