title: How I can get 0 index value in codeigniter?
body: <pre><code>Array ( [0] =&gt; 18 [1] =&gt; 1 )
  </code></pre>
  
  <p>how i can get only 0 index value?. I am using this code in codeigniter. Can any one help?. Is this possible with for each loop so it access all indexes but show only zero index?   </p>
  
  <pre><code>    foreach($m as $m)
  {
      echo $m-&gt;['0'];
  }
  </code></pre>