src/http/request/RequestCookie.php
public static function get($name, $options = [])
    {
        $default = isset($options["default"]) ? $options["default"] : null;

        return isset($_COOKIE[$name]) ? $_COOKIE[$name] : $default;
    }
public static function get($name, $options = [])
    {
        $default = isset($options["default"]) ? $options["default"] : null;

        return isset($_COOKIE[$name]) ? $_COOKIE[$name] : $default;
    }
public static function get ( $ name , $ options = [ ] ) { $ default = isset ( $ options [ "default" ] ) ? $ options [ "default" ] : null ; return isset ( $ _COOKIE [ $ name ] ) ? $ _COOKIE [ $ name ] : $ default ; }
Gets a cookie.

Example:

// gets a cookie and returns '123' if the cookie does not exist
$token = RequestCookie::get("token", ["default" => "123"]);

@param string $name    Cookie name
@param array  $options Options (not required)

@return mixed|null
Gets a cookie .