Skip to content

Instantly share code, notes, and snippets.

@skillslasher
skillslasher / header_http_status_codes.php
Created April 30, 2022 23:21 — 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(