From stackoverflow.com
Why is function http_response_code() acting strange that was called after function header() in PHP?
1 1
Well. I have a problem with http_response_code(), and I can't find an explanations. If I use header() before http_response_code(), PHP returns HTTP-status which was set by header() and ignores any
11h ago