php http errorcode

40

<?php

// Get the current default response code
var_dump(http_response_code());     // false

// Set a response code
var_dump(http_response_code(201));  // true

// Get the new response code
var_dump(http_response_code());     // 201
?>

Comments

Submit
0 Comments