title: Combine 2 non equal arrays into multi dimensional array
body: <p>I have 2 arrays: </p>
  
  <p>first[]:</p>
  
  <pre><code>Array
  (
  [First / Building] =&gt; code 100
  [Second - Closed and Covered Cans] =&gt; code 200
  )
  </code></pre>
  
  <p>second[]:</p>
  
  <pre><code>Array
  (
  [0] =&gt; 1,000.00
  [1] =&gt; 2,000.00
  [2] =&gt; 3,000.00
  )
  </code></pre>
  
  <p>My desired out will be something like this :</p>
  
  <p>final[]</p>
  
  <pre><code>Array
  (
      [First / Building] =&gt; code 100
          (
              [0] =&gt; 1,000.00
          )
  
      [Second - Closed and Covered Cans] =&gt; code 200
          (
              [0] =&gt; 2,000.00
          )
  
  )
  </code></pre>
  
  <p>(leave the [2] => 3,000.00 unmatched in this case)</p>
  
  <p>If first[] count is > second[], let's say :</p>
  
  <p>first[]</p>
  
  <pre><code>Array
  (
  [First / Building] =&gt; code 100
  [Second - Closed and Covered Cans] =&gt; code 200
  [Third - Closed and Covered Cans] =&gt; code 300
  [Forth - Closed and Covered Cans] =&gt; code 400
  )
  </code></pre>
  
  <p>second[]</p>
  
  <pre><code>Array
  (
  [0] =&gt; 1,000.00
  [1] =&gt; 2,000.00
  [2] =&gt; 3,000.00
  )
  </code></pre>
  
  <p>My desired output :</p>
  
  <p>final[]</p>
  
  <pre><code>Array
  (
      [First / Building] =&gt; code 100
          (
              [0] =&gt; 1,000.00
          )
  
      [Second - Closed and Covered Cans] =&gt; code 200
          (
              [0] =&gt; 2,000.00
          )
       [Third - Closed and Covered Cans] =&gt; code 300
          (
              [0] =&gt; 3,000.00
          )
       [Forth - Closed and Covered Cans] =&gt; code 400
          (
          ) 
  )
  </code></pre>
  
  <p>(leave the forth with no value in this case)</p>
  
  <p>All the time pair the values from first array with the ones from second array. I tryed with array_combine(), but that isn't viable since they have different count.</p>