title: (PHP) 2D Array first element as "name" for the index
body: <p>Put simply, I need to take the first column of an array and turn that into a named array, multiple times over within a single 2d array.</p>
  
  <p>$arr[0][0] = "Name"
  $arr[1][0] = "Version"
  ...etc, allowing me to then access them as:
  $arr["Name"][1] = "Bob"
  $arr["Version"][1] = "1.00"</p>
  
  <p>How do you assign variable names to an index? If that makes sense. I don't know the proper terms for this kind of thing... Or at least not how to use them.</p>
  
  <p>Anyway, the actual array looks like this:</p>
  
  <pre><code>Name,Version,Compact,OpenGFx
  Element1,1.0,0,0,1
  Element2,1.23,0,0,1
  ElementN,1.0,0,0,1
  </code></pre>
  
  <p>I started writing identifiers to do the same thing ($name=0, $version=1, etc.) but there are <strong>165 columns</strong>! So automation would be much easier, and I am interested in learning new things as always!</p>