Skip to content

Instantly share code, notes, and snippets.

@lucaswdm
lucaswdm / header_http_status_codes.php
Created August 28, 2019 02:04 — forked from phoenixg/header_http_status_codes.php
PHP header() for sending HTTP status codes
<?php
/*
参考自:
http://darklaunch.com/2010/09/01/http-status-codes-in-php-http-header-response-code-function
http://snipplr.com/view/68099/
*/
function HTTPStatus($num) {
$http = array(