I want to make like Code: blue : playername, playername2 ... but it changes to Code: A: player player: player's name here is code Code: @mkdir ($this->getDataFolder()); $this->database = new Config ($this->getDataFolder()."data.yml",Config::YAML,[ "A" => "player" ]); $this->db = $this->database->getAll(); Code: case "TA" if(isset($args[1])){ $this->db["player"]="$args[1]"; $this->database->setAll($this->db); $this->database->save(); } And if I add a player's name, the existing player's name disappears. How do I make it possible for many people to exist in A: ?
$this->db["blue"] = ["player1", "player2"]; //set an array in "blue" $arrayofplayers = $this->db["blue"]; //read the array in "blue"