title: How to loop array
body: <p>I have a table, from this table I want to select all, where array(). My array:</p>
  
  <pre><code>Array
  (
      [0] =&gt; 3
      [1] =&gt; 4
      ..etc..
  )
  </code></pre>
  
  <p>I use this:</p>
  
  <pre><code>$db-&gt;where('id',array(***,***),"IN");
  $db-&gt;get('cars');
  </code></pre>
  
  <p>How can I loop the array to be correct? Like this for example:</p>
  
  <pre><code>$db-&gt;where('id',array($this-&gt;car[0],$this-&gt;car[1]),"IN");
  </code></pre>
  
  <p>I tried to put "<code>array(*here*)</code>" while or for to loop but its not working.</p>