PHP Class think\Env

显示文件 Open project: top-think/framework Class Usage Examples

Public Methods

Method Description
get ( string $name, string $default = null ) : mixed 获取环境变量值

Method Details

get() public static method

获取环境变量值
public static get ( string $name, string $default = null ) : mixed
$name string 环境变量名(支持二级 .号分割)
$default string 默认值
return mixed