Use http_response_code() to Set HTTP Response Codes

Use http_response_code() to Set HTTP Response Codes

The http_response_code() function sets or gets the HTTP response code. This is useful for sending the correct status code in HTTP responses.

← Back to Tips List