$environment->detect()
Sanitizes the server info and detects all relevant parts. This can be called again at a later point to overwrite all the stored information and re-detect the environment if necessary.
$environment->detect(array $options = null, array $info = null): array
Parameters
Name | Type | Default | Description |
---|---|---|---|
$options | array |
null |
|
$info | array |
null |
Optional override for $_SERVER |
Return type
array