略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Yaf_Request_Abstract::getServer

2024-04-29

Yaf_Request_Abstract::getServer

(Yaf >=1.0.0)

Yaf_Request_Abstract::getServer返回SERVER变量的值

说明

public Yaf_Request_Abstract::getServer(string $name, string $default = ?): void

返回SERVER变量的值

参数

name

the variable name

default

如果提供这个参数,在没找到变量值时候此参数的值将被返回

返回值

参见

  • Yaf_Request_Abstract::getParam
  • Yaf_Request_Abstract::getEnv
add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/yaf-request-abstract.getserver.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3