Toggle navigation
Hot Examples
JP
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
検索
Home
Webiny
Component
Http
Request
Env
PHP Class Webiny\Component\Http\Request\Env
Inheritance:
use trait
Webiny\Component\StdLib\StdLibTrait
ファイルを表示
Open project: Webiny/Framework
Class Usage Examples
Public Methods
Method
Description
__construct
( )
Constructor.
get
(
string
$key
,
null
$value
= null ) :
string
Get the value from environment variables for the given $key.
getAll
( ) :
array
Returns a list of all environment variables.
Method Details
__construct()
public
method
Constructor.
public
__construct
( )
get()
public
method
Get the value from environment variables for the given $key.
public
get
(
string
$key
,
null
$value
= null ) :
string
$key
string
Key name.
$value
null
Default value that will be returned if the $key is not found.
return
string
Value under the defined $key.
getAll()
public
method
Returns a list of all environment variables.
public
getAll
( ) :
array
return
array