public function push($key, $value = null)
    {
        if (is_null($value)) {
            $this->items[] = $key;

            return;
        }

        $items = $this->get($key);

        if (is_array($items) || is_null($items)) {
            $items[] = $value;
            $this->set($key, $items);
        }
    }
public function push($key, $value = null)
    {
        if (is_null($value)) {
            $this->items[] = $key;

            return;
        }

        $items = $this->get($key);

        if (is_array($items) || is_null($items)) {
            $items[] = $value;
            $this->set($key, $items);
        }
    }
public function push ( $ key , $ value = null ) { if ( is_null ( $ value ) ) { $ this -> items [ ] = $ key ; return ; } $ items = $ this -> get ( $ key ) ; if ( is_array ( $ items ) || is_null ( $ items ) ) { $ items [ ] = $ value ; $ this -> set ( $ key , $ items ) ; } }
Push a given value to the end of the array
in a given key

@param mixed $key
@param mixed $value
Push a given value to the end of the array in a given key