Function

header

Synopsis

header(string, mixed ...): void

Area
Runtime\PS\HTTP\SAPI\headerareas

Description

header stages the "Name: value" response header in $header, written to the response after the script finishes; $replace (default true) overwrites an existing header of the same name, $code stages the response status, and a status line such as "HTTP/1.0 404 Not Found" stages the status it names.

Usage

$value = header($arguments);
$fn = header(...);

See also