okay so I know it looks dumb, but basically.. how would I make this(its an example without code on php.net) Code: Ban: - Reason: BL394D - Reason: BL4438H In my YAML PHP: ["Ban"]=> array() { [0]=> array(4) { ["Reason"]=> string(6) "BL394D" } [1]=> array() { ["Reason"]=> string(7) "BL4438H" } } So once some gets banned , I get the reason and I throw it into his Ban array. I know how to do that. Though I don't know how to set the second one without overwriting
you can append values to the array PHP: /** @var array $ban_array */$ban_array[]["Reason"] = "Hello";