编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « Yaf_Request_Http::get
  • Yaf_Request_Http::getFiles »
  • PHP Manual
  • Yaf_Request_Http
  • 返回Cookie变量

Yaf_Request_Http::getCookie

(Yaf >=1.0.0)

Yaf_Request_Http::getCookie — 返回Cookie变量

说明

public Yaf_Request_Http::getCookie ( string $name [, string $default ] ) : mixed

返回Cookie变量

参数

name

the cookie name

default

如果提供了此参数,当变量在未被找到的情况下,提供的参数将被返回

返回值

参见

  • Yaf_Request_Http::get
  • Yaf_Request_Http::getQuery
  • Yaf_Request_Http::getPost
  • Yaf_Request_Http::getServer
  • Yaf_Request_Http::getParam
相关文章
php yaf the yaf request http classphp 预定义变量 http 响应头php 预定义变量 http request 变量php swoole http client set the http request cookies.php swoole http client set the http request body data.php yaf request abstract 取得env变量的值php yaf request abstract the getexception purposephp yaf request abstract 返回server变量的值php yaf request abstract the isrouted purposephp yaf request abstract the isxmlhttprequest purposephp yaf request http the clone purposephp yaf request http the construct purposephp yaf request http 从客户端返回变量php yaf request http 返回cookie变量php yaf request http the getfiles purposephp yaf request http 返回post变量php yaf request http fetch a query parameterphp yaf request http retrieve raw request bodyphp yaf request http the getrequest purposephp yaf request http 是否为ajax请求
关注编程学问公众号
编程学问网 湘ICP备20001732号