title: How to create new arrays from existing multidimensional array in PHP
body: <p>I have the following multi-dimensional array (this is only an extract) and would like to dynamically create a set of one-dimensional arrays and add values.</p>
  
  <p>What I have:</p>
  
  <pre><code>0 =&gt; 
       0 =&gt; Image
       1 =&gt; DE
       2 =&gt; Hamburg-S02-I01
       3 =&gt; 54
       4 =&gt; Button
  1 =&gt; 
       0 =&gt; Image
       1 =&gt; GB
       2 =&gt; London-S01-I01
       3 =&gt; 51
       4 =&gt; Button
  2 =&gt; 
       0 =&gt; Image
       1 =&gt; GB
       2 =&gt; London-S01-I04
       3 =&gt; 60
       4 =&gt; Button
  3 =&gt; 
       0 =&gt; Image
       1 =&gt; DE
       2 =&gt; Berlin-S02-I01
       3 =&gt; 57
       4 =&gt; Button
  4 =&gt; 
       0 =&gt; Image
       1 =&gt; DE
       2 =&gt; Hamburg-S02-I01
       3 =&gt; 52
       4 =&gt; Button
  </code></pre>
  
  <p>What I need:</p>
  
  <pre><code>$Hamburg = array('Hamburg-S02-I01', 'Hamburg-S02-I01');
  $London= array('London-S01-I01', 'London-S01-I04');
  $Berlin= array('Berlin-S02-I01');
  </code></pre>
  
  <p>I appreciate your help! Thanks!</p>