How to iterate through this three dimensional array : <p>Assuming I have three arrays:</p>

<pre><code>array1 = [1,2,3,4];
array2 = [5,6,7];
array3 = [8,9,10,11];
</code></pre>

<p>and would like to get an output like this:</p>

<pre><code>1,5,8,2,6,9,3,7,10,4,11
</code></pre>

<p>Therefore outputting the items in the array vertically. </p>

<pre><code>|---------------------|
|     1   2   3   4   |
|     5   6   7       |
|     8   9  10  11   |
|---------------------|
</code></pre>

<p>What is the most efficient way to get the output?</p>
