public function getFlash($key) {
        if ($this->has($key)) {
            $flashData = $_SESSION[$key];
            $this->delete($key);
            return $flashData;
        }
    }
public function getFlash($key) {
        if ($this->has($key)) {
            $flashData = $_SESSION[$key];
            $this->delete($key);
            return $flashData;
        }
    }
public function getFlash ( $ key ) { if ( $ this -> has ( $ key ) ) { $ flashData = $ _SESSION [ $ key ] ; $ this -> delete ( $ key ) ; return $ flashData ; } }
Gets flash values by given key

@param string $key
@return mixed
Gets flash values by given key