I have a SQL table and the name is 'table1' and table structure is below.
ID|customer_name|orders_id|
---------------------------
1 | muko | 1 |
2 | luma | 2 |
3 | muko | 2 |
4 | ceki | 8 |
5 | ceki | 10 |
6 | muko | 7 |
7 | luma | 11 |
---------------------------
etc...
How can I output them as array like this in PHP:
$customers = array ("muko"=>[1,2,7], "luma"=>[2,11], "ceki"=>[8,10] );