Answers for "php header status"

PHP
0

php set http status header

with a param sets the response code, without gets it.
 //set new response code 404:
  http_response_code(404);
// print out current response code
  var_dump(http_response_code());
Posted by: Guest on January-27-2022

Browse Popular Code Answers by Language