I'm trying to make a HTML table out of a multidimensional array variable $array2
which is a query(from a mysql database PHP query and Not a self-made query) and is as follows;
Array
(
[0] => Array
(
[0] => M2TYEE
[1] => Jean
[2] => Harvey
[3] => London
[4] => 0314686334
)
[1] => Array
(
[0] => E26YBE
[1] => Tom
[2] => Cruise
[3] => New York
[4] => 0635625735
)
)
I want to make the table appear like this
|ID |FIRST NAME| LAST NAME | CITY | PHONE |
________________________________________________________
|M2TYEE | Jean | Harvey | London | 0314686334 |
--------------------------------------------------
|E26YBE | Tom | Cruise | New York | 0635625735 |
They array may increase to upto say 1000 values so using a while/for loop would be necessary. Any help will be highly appreciated