I once trying adding two values with the same key, but it didn\'t work. It overrode the old value. Isn\'t it possible to add more than one value with the same key, and when
the simplest option: wherever you use $array[$key]=... replace it with $array[$key][]=...
$array[$key]=...
$array[$key][]=...