可參考:【英文版 w3schools 的介紹】【中文簡體 runoob 的介紹】
header() 函數是向客戶端發送原始的 HTTP 檔頭資訊。
有一點很重要,header() 必須在任何實際的輸出被發送之前即執行。
語法: header(string,replace,http_response_code); 例如: header('Location: http://www.example.com/');