title: Creating array from array
body: <p>I have following array.</p>
  
  <pre><code>{#11950
    +"attributes": array:3 [
      0 =&gt; {#608
        +"attribute_value": "test123"
        +"attribute_name": "name"
      }
      1 =&gt; {#556
        +"attribute_value": "foo moo"
        +"attribute_name": "lastname"
      }
      2 =&gt; {#605
        +"attribute_value": "sample moo"
        +"attribute_name": "email"
      }
      3 =&gt; {#606
        +"attribute_value": "holo"
        +"attribute_name": "adress"
      }
    ]
  }
  </code></pre>
  
  <p>I would like to convert it like follow</p>
  
  <pre><code>$a = array(
      'name' =&gt; 'test123',
      'lastname' =&gt; 'foo moo',
      'email' =&gt; 'sample moo',
      'address' =&gt; 'holo
  );
  </code></pre>
  
  <p>I will do same operation countless time so I believe there should be a proper solution rather then looping all values and checking out attribute_name with if else etc.</p>