How to structurally display a multi-dimensional array in PHP?
- by Jaime Cross
How can I display the contents of an array as follows:
Company Name
- Username1
- Username2
Another Company Name
- Username3
The array I have created is as follows:
$array[1]['company_id'] = '12';
$array[1]['company_name'] = 'ABC Company';
$array[1]['company_type'] = 'default';
$array[1]['user_id'] = '23';
$array[1]['user_name'] =…