src/Storage/ArrayCollection.php
public function add(string $key, $value)
    {
        $current = $this->get($key, []);
        $adds = is_array($value) ? $value : [$value];
        $this->set($key, array_merge($current, array_values($adds)));
    }
public function add(string $key, $value)
    {
        $current = $this->get($key, []);
        $adds = is_array($value) ? $value : [$value];
        $this->set($key, array_merge($current, array_values($adds)));
    }
public function add ( string $ key , $ value ) { $ current = $ this -> get ( $ key , [ ] ) ; $ adds = is_array ( $ value ) ? $ value : [ $ value ] ; $ this -> set ( $ key , array_merge ( $ current , array_values ( $ adds ) ) ) ; }
Add Values To Key Array
Add Values To Key Array