App::replaceServer

Usage


Description

Replace all SERVER variables with the given associative array.

Parameters

Parameter Required Type Description
$values Yes array

Examples

Replace all variables

ERROR: The template tag 'usage' does not exist.

$values = [ 'HTTP_USER_AGENT' => 'CoolBrowser/1.0', 'REMOVE_ADDR' => '24.155.216.8', 'HTTP_HOST' => 'example.com' ]; $app->replaceReplace($values);

See Also