title: Array not repeating inside in for loop
body: <p>I have an array for autofilled multi select form. I have to display some values as initial values, And I have an array for it.
  This is my code.</p>
  
  <pre><code> for($i=0; $i&lt;count($temp_multy_name); $i++)
   {
  
       echo  $temp_multy_name[$i]; echo"&amp;nbsp";
       $pac-&gt;set_init_selection(array(
          array("id"=&gt;"$temp_multy_name[$i]", "text"=&gt;"$temp_multy_name[$i]"),
       ));
  
   } 
  </code></pre>
  
  <p>when I run <code>echo $temp_multy_name[$i]</code>, i get php and mysql, but when I apply it in the <code>set_init_selection</code> i got only the last value, Don't know why. Can any one please help me? </p>
  
  <p><br></p>
  
  <p><img src="https://i.stack.imgur.com/2nsWr.png" alt="enter image description here"></p>