哈希空间 Ctrl + F 进行搜索
首页 php手册中文版 CSS中文手册 哈希文档 Markdown在线工具

PHP apache 组件

apache_response_headers

(PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8)

apache_response_headers获得全部 HTTP 响应头信息

说明

apache_response_headers(): array|false

获得全部 HTTP 响应头信息。 可在 Apache、FastCGI、CLI、FPM 模式下运行。

参数

此函数没有参数。

返回值

成功时返回包含全部 Apache 响应头信息的数组, 或者在失败时返回 false.

范例

示例 #1 apache_response_headers() 示例

<?php
print_r
(apache_response_headers());
?>

以上例程的输出类似于:

Array
(
    [Accept-Ranges] => bytes
    [X-Powered-By] => PHP/4.3.8
)

参见

打开 哈希空间 微信小程序中查看更佳