title: Using value of a column as index in results using PDO
body: <p>I have an SQL table called 'brands' with the columns id, name, url.
  In that table I have this data set:</p>
  
  <pre><code>1, Solidfloor, solidfloor;
  2, Quickstep, quickstep;
  4, Cleanfloor, cleanfloor;
  5, Blue Dolphin, blue-dolphin;
  6, Krono, krono;
  8, Meister, meister;
  </code></pre>
  
  <p>I'm fetching them all right now and I get a nice array in return, but, I need the index of the arrays to not be an incremented number, but the id of that particular row. I could of course loop through the result set, but is there a cleaner way of doing this?</p>