Closed RealStr closed 1 year ago
I'm trying to add a custom field in the array "Owner"
$servers = [ [ 'type' => 'rust', 'host' => 'localhost:28015', 'owner' => 'Edward', ], [ 'type' => 'csgo', 'host' => 'localhost:27015', 'owner' => 'Nicky', ], [ 'type' => 'cs16', 'host' => 'localhost:27015', 'owner' => 'Edward', ], [ 'type' => 'samp', 'host' => 'localhost:7777', ], ];
foreach($results as $server) { $server['owner']; }
I'm trying to add a custom field in the array "Owner"
$servers = [ [ 'type' => 'rust', 'host' => 'localhost:28015', 'owner' => 'Edward', ], [ 'type' => 'csgo', 'host' => 'localhost:27015', 'owner' => 'Nicky', ], [ 'type' => 'cs16', 'host' => 'localhost:27015', 'owner' => 'Edward', ], [ 'type' => 'samp', 'host' => 'localhost:7777', ], ];
foreach($results as $server) { $server['owner']; }