I would like to join several arrays into a single two-dimensional array.
Each array corresponds to the data of a column and I would like to know if it is possible to put all together.
My arrays are in this format:
<?php
$Id =array("1","2","3");
$Auto =array("BMW","NISSAN","FORD");
$Precio =array("1000","2000","3000");
The objective that I would like to know if it is possible is to put the three arrays together in one, so that later I can go through them with a $listaAutos[i][j]
loop.
Working with PHP 7.