Library/Think/Http/Request.class.php
/**
     * Fetch COOKIE data
     *
     * This method returns a key-value array of Cookie data sent in the HTTP request, or
     * the value of a array key if requested; if the array key does not exist, NULL is returned.
     *
     * @param  string              $key
     * @return array|string|null
     */
Fetch COOKIE data
This method returns a key-value array of Cookie data sent in the HTTP request, or
the value of a array key if requested; if the array key does not exist, NULL is returned.

@param  string              $key
@return array|string|null
Fetch COOKIE data This method returns a key - value array of Cookie data sent in the HTTP request or the value of a array key if requested ; if the array key does not exist NULL is returned . @param string $key @return array|string|null
public function cookies($key = null) {
        if ($key) {
            return $this->cookies->get($key);
        }
        return $this->cookies;
    }
public function cookies ( $ key = null ) { if ( $ key ) { return $ this -> cookies -> get ( $ key ) ; } return $ this -> cookies ; }
Fetch COOKIE data
 This method returns a key-value array of Cookie data sent in the HTTP request, or
 the value of a array key if requested; if the array key does not exist, NULL is returned.
Fetch COOKIE data This method returns a key - value array of Cookie data sent in the HTTP request or the value of a array key if requested ; if the array key does not exist NULL is returned .