title: Add 2 values to 1 key in a PHP array
body: <p>I have a result set of data that I want to write to an array in php.  Here is my sample data:</p>
  
  <pre><code>**Name** **Abbrev**
  Mike     M
  Tom      T
  Jim      J
  </code></pre>
  
  <p>Using that data, I want to create an array in php that is of the following:</p>
  
  <pre><code>1|Mike|M
  2|Tom|T
  3|Jim|j
  </code></pre>
  
  <p>I tried array_push($values, 'name', 'abbreviation') [pseudo code], which gave me the following:</p>
  
  <pre><code>1|Mike
  2|M
  3|Tom
  4|T
  5|Jim
  6|J
  </code></pre>
  
  <p>I need to do a look up against this array to get the same key value, if I look up "Mike" or "M".</p>
  
  <p>What is the best way to write my result set into an array as set above where name and abbreviation share the same key?</p>