title: How to Initialize an Associative Array in a While Loop?
body: <p>I am now doing a simple thing, I am going to read from a CSV file, that column  A contains code such as "EN", column B contains specific name "English"..etc., and I want to read them into an associate array.</p>
  
  <p>My current doing is like this:</p>
  
  <pre><code>  $handle = fopen("Languages.csv","r") or die("EPIC FAIL!");
  
    $languageArray = array(
    while (($row = fgetcsv($handle, 1000, ",")) !== FALSE) 
    {
                $row[0] =&gt; $row[1],
    }
    )
  </code></pre>
  
  <p>But it actually complains about my syntax, so I am just wondering if there is a way to initialize my associate array by getting all the rows of my csv file, and put the first string(from column A) as the key, the second string(from column B)as the value?</p>
  
  <p>Thanks.</p>