public static function get($key = '')
    {
        if (isset($_COOKIE[self::$prefix . $key])) {
            return $_COOKIE[self::$prefix . $key];
        }

        return (isset($_COOKIE) && count($_COOKIE)) ? $_COOKIE : false;
    }
public static function get($key = '')
    {
        if (isset($_COOKIE[self::$prefix . $key])) {
            return $_COOKIE[self::$prefix . $key];
        }

        return (isset($_COOKIE) && count($_COOKIE)) ? $_COOKIE : false;
    }
public static function get ( $ key = '' ) { if ( isset ( $ _COOKIE [ self :: $ prefix . $ key ] ) ) { return $ _COOKIE [ self :: $ prefix . $ key ] ; } return ( isset ( $ _COOKIE ) && count ( $ _COOKIE ) ) ? $ _COOKIE : false ; }
Get item from cookie.

@param string $key → item to look for in cookie

@return mixed|false → returns cookie value, cookies array or false
Get item from cookie .