Answers for "php set status code"

PHP
0

php set status code

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