CakeFest 2024: The Official CakePHP Conference

Yaf_Request_Abstract::getEnv

(Yaf >=1.0.0)

Yaf_Request_Abstract::getEnv检索 ENV 变量

说明

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

检索 ENV 变量

参数

name

变量名

default

如果这个参数被提供了,当参数找不到的时候它将被返回

返回值

返回字符串

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top