flatten array from single dimensional array
<p>hi my array is like this  </p>

<pre><code>Array(['a1','aa1','1'],['a2','aa2','2'],['a3','aa3','3'],['a4','aa4','4'])
</code></pre>

<p>my required array</p>

<pre><code> Array(['a1','1'],['aa1',[1]],['a2','2'],['aa2','2'],['a3','3'],['aa3','3'],    
 ['a4','4'],['aa4','4'])
</code></pre>

<p>my requirement is i'll get the array with the combination of 1 &amp; 3,2 &amp; 3 </p>

<p>please help me</p>

<p>Thank you</p>
