I use this to generate configs: PHP: new Config($this->getDataFolder()."prefences.yml", Config::YAML, array.... In the array, I have this: PHP: "items" => array( array(1, 0, 2), array(1, 0, 2) ), But this generates this: items: - - 1 - 0 - 2 I want it to be like this: items: - "295:0:1" - "458:0:1" How do I do that?
Instead of creating a array enclose does values into a string. Then if you want to split them just use explode
To convert "a:b" into [a, b] : PHP: $array = explode(":", $string); The opposite: PHP: $string = implode(":", $array);