title: Transpose and flatten two-dimensional indexed array where rows may not be of equal length
body: <p>I would like to take an array like this and combine it into 1 single array.</p>
  
  <pre><code>array (size=2)
     0 =&gt; 
        array (size=10)
           0 =&gt; string '1' 
           1 =&gt; string 'a' 
           2 =&gt; string '3' 
           3 =&gt; string 'c' 
     1 =&gt; 
        array (size=5)
           0 =&gt; string '2'
           1 =&gt; string 'b'
  </code></pre>
  
  <p>However I want the array results to be interleaved.</p>
  
  <p>So it would end up looking like</p>
  
  <pre><code>array
       0 =&gt; '1'
       1 =&gt; '2'
       2 =&gt; 'a'
       3 =&gt; 'b'
       4 =&gt; '3'
       5 =&gt; 'c'
  </code></pre>
  
  <p>I would like it so that it doesn't matter how many initial keys are passed in (this one has 2), it should work with 1, 2 or 5. Also, as you can see from my example the amount of elements most likely won't match.</p>
  
  <p>Anyone know the best way to accomplish this?</p>