I'm trying to get all clients database id, but I've been unable to using foreach etc as it always returns the value as NULL. I need to get a foreach with the database ids and put it in an array
$userchannel = $clients->cid->clientList["client_database_id"];
I managed to fix it.