I am getting an illegal string offset error when trying to access the value of an array using a key.
define('SRV_INFO', array(
'name' => 'Rustafied.com',
'info' => array(
'ip' => '192.223.26.55:26032',
'desc' => '350 slots of pure mayhem'
),
'name' => 'Rustafied.com - Medium',
'info' => array(
'ip' => '74.91.122.115:28069',
'desc' => 'The sweet spot between main and low pop'
)
));
foreach(SRV_INFO as $server) {
echo '
<div class="server">
<span class="name">'. $server['name'] .'</span>
<span class="desc">'. $server['info']['desc'] .'</span>
<span class="pop"></span>
</div>
';
}