Core/Util/Message.php
public static function get($key = '', $preserve = false)
    {
        $value = null;
        if (isset($_SESSION['flashmessage'][$key])) {
            $value = $_SESSION['flashmessage'][$key];
            if (!$preserve) {
                unset($_SESSION['flashmessage'][$key]);
            }
        }
        return $value;
    }
public static function get($key = '', $preserve = false)
    {
        $value = null;
        if (isset($_SESSION['flashmessage'][$key])) {
            $value = $_SESSION['flashmessage'][$key];
            if (!$preserve) {
                unset($_SESSION['flashmessage'][$key]);
            }
        }
        return $value;
    }
public static function get ( $ key = '' , $ preserve = false ) { $ value = null ; if ( isset ( $ _SESSION [ 'flashmessage' ] [ $ key ] ) ) { $ value = $ _SESSION [ 'flashmessage' ] [ $ key ] ; if ( ! $ preserve ) { unset ( $ _SESSION [ 'flashmessage' ] [ $ key ] ) ; } } return $ value ; }
Get message and destroy upon reading unless stated otherwise.

@param string $key
@param bool $preserve
@return mixed
Get message and destroy upon reading unless stated otherwise .