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
My output
Array ( [0] => PONDICHERRY [1] => 31-Jan-2018 [2] => [3] => distance and height are not proportional. )
Array ( [0] => PONDICHERRY [1] => 03-Feb-2020 [2] => [3] => helloooooooooooooo )
My expected output
Array ( [0] => Array ( [0] => PONDICHERRY [1] => 31-Jan-2018 [2] => [3] => distance and height are not proportional. ) [1] =>Array ( [0] => PONDICHERRY [1] => 03-Feb-2020 [2] => [3] => helloooooooooooooo ) )
It's difficult for me to combine the arrays, but how do i create like this?
Thank you