header($string);

Used to send a raw HTTP header, often used for page redirects.

Must be called before any other output is sent.

// Redirect the request to https://keithgreer.dev
header("Location: https://keithgreer.dev");
// Send an error code to the browser, for example a 404
header("HTTP/1.0 404 Not Found");