title: PHP, possible to have multiple keys for one array value?
body: <p>I'm getting an array of values back from a database where I get an array with values like this:</p>
  
  <pre><code>Array ( [6712] =&gt; 64.79.197.36:43444 [6712] =&gt; 64.79.197.36:43444 [6711] =&gt; 64.79.194.56:41113 [6710] =&gt; 64.21.47.20:8080 [6709]) 
  </code></pre>
  
  <p>Where the numbers in brackets, like [6712] are the "id" field in the database.. the issue is that in my script I want to make it so that the each array value has a second key that I assign, which starts from "0" and increments by one, so something like:</p>
  
  <pre><code>Array ( [0][6712] =&gt; 64.79.197.36:43444 [1][6712] =&gt; 64.79.197.36:43444 [2][6711] =&gt; 64.79.194.56:41113 [3][6710] =&gt; 64.21.47.20:8080 [4][6709]) 
  </code></pre>
  
  <p>This is for some data processing so I want to be able to have a way to track each one in a meaningful way within my script (As I can't predict what the mysql id would be as there may be deleted records, etc so its not always incremented by 1)..</p>
  
  <p>I have found some ways to create a new array by assigning a new key but I'm wondering if its possible to have 2 keys for 1 array value</p>