title: How to use array values as keys without loops?
body: <p>Looping is time consuming, we all know that. That's exactly something I'm  trying to avoid, even though it's on a small scale. Every bit helps. Well, if it's unset of course :)</p>
  
  <h3>On to the issue</h3>
  
  <p>I've got an array:</p>
  
  <pre><code>array(3) {
      '0' =&gt; array(2) {
          'id'   =&gt; 1234,
          'name' =&gt; 'blablabla',
      },
      '1' =&gt; array(2) {
          'id'   =&gt; 1235,
          'name' =&gt; 'ababkjkj',
      },
      '2' =&gt; array(2) {
          'id'   =&gt; 1236,
          'name' =&gt; 'xyzxyzxyz',
      },
  }
  </code></pre>
  
  <p>What I'm trying to do is to convert this array as follows:</p>
  
  <pre><code>array(3) {
      '1234' =&gt; 'blablabla',
      '1235' =&gt; 'asdkjrker',
      '1236' =&gt; 'xyzxyzxyz',
  }
  </code></pre>
  
  <p>I guess this aint a hard thing to do but my mind is busted right now and I can't think of anything except for looping to get this done.</p>