convert multiple single dimensional array to single multi dimensional array in php
<p>I have 'N' single dimensional arrays(where N represents number of records retrieved by a sql command)
How do I convert it to multi dimensional array with keys as index?
At first I thought of creating a separate key array and then combining it with those N arrays</p>

<p>My output</p>

<pre><code>Array ( [0] =&gt; PONDICHERRY [1] =&gt; 31-Jan-2018 [2] =&gt; [3] =&gt; distance and       height are not proportional. ) 
Array ( [0] =&gt; PONDICHERRY [1] =&gt; 03-Feb-2020 [2] =&gt; [3] =&gt; helloooooooooooooo )   
</code></pre>

<p>My expected output</p>

<pre><code>Array ( [0] =&gt; Array ( [0] =&gt; PONDICHERRY [1] =&gt; 31-Jan-2018 [2] =&gt; [3] =&gt; distance and height are not proportional. ) [1] =&gt;Array ( [0] =&gt; PONDICHERRY [1] =&gt; 03-Feb-2020 [2] =&gt; [3] =&gt; helloooooooooooooo )  )
</code></pre>

<p>It's difficult for me to combine the arrays, but how do i create like this?</p>

<p>Thank you</p>