src/Segment.php
public function remove($key)
    {
        if (isset($_SESSION[$this->name][$key])) {
            $value = $_SESSION[$this->name][$key];
            unset($_SESSION[$this->name][$key]);
            return $value;
        }

        return null;
    }
public function remove($key)
    {
        if (isset($_SESSION[$this->name][$key])) {
            $value = $_SESSION[$this->name][$key];
            unset($_SESSION[$this->name][$key]);
            return $value;
        }

        return null;
    }
public function remove ( $ key ) { if ( isset ( $ _SESSION [ $ this -> name ] [ $ key ] ) ) { $ value = $ _SESSION [ $ this -> name ] [ $ key ] ; unset ( $ _SESSION [ $ this -> name ] [ $ key ] ) ; return $ value ; } return null ; }
Remove an item from the session, returning its value.

@param  string  $key
@return mixed
Remove an item from the session returning its value .