title: how to put selection in array?
body: <p>i want to put selection like if else in array from while loop, Here is my codes</p>
  
  <pre><code>while (($importdata = fgetcsv($file, 10000, ",")) !== FALSE)
               {
                  if(($importdata[0])=='1')
                  {
                      $this-&gt;session-&gt;set_flashdata('sukses', ' Terdapat angka 1..');
  
                  }
                  else
                  {
                      $this-&gt;session-&gt;set_flashdata('sukses', ' Tidak Terdapat angka 1..');
                  } }
  </code></pre>
  
  <p>I need something like </p>
  
  <pre><code>if (($importdata[1])=='15') { 
      do something; 
  } else { 
      do something else;
  }
  </code></pre>
  
  <p>Thank you in advance</p>