Trying to build the multidimensional array with a foreach using record from a db...
$servDetails = array(
// CSS Servers
'css' => array(
'server1' => array(
'id' => 'id1',
'type' => 'css',
'host' => 'ip:port'
),
'server2' => array(
'id' => 'id2',
'type' => 'css',
'host' => 'ip:port'
)
)
);
What's the best way of doing this?