See also http_response_code. It performs much the same function; and its notes describe response codes in detail.
(PECL pecl_http >= 0.1.0)
http_send_status — Send HTTP response status
$status
)Send HTTP status code.
status
HTTP status code (100-599)
成功时返回 TRUE
, 或者在失败时返回 FALSE
。
See also http_response_code. It performs much the same function; and its notes describe response codes in detail.