Austinb / GameQ

A PHP Gameserver Status Query Library
https://austinb.github.io/GameQ/
GNU Lesser General Public License v3.0
403 stars 136 forks source link

Pass custom field from array #685

Closed RealStr closed 1 year ago

RealStr commented 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']; }