<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.apache.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.apache-response-headers.php',
    1 => 'apache_response_headers',
    2 => '获得全部 HTTP 响应 header',
  ),
  'up' => 
  array (
    0 => 'ref.apache.php',
    1 => 'Apache 函数',
  ),
  'prev' => 
  array (
    0 => 'function.apache-request-headers.php',
    1 => 'apache_request_headers',
  ),
  'next' => 
  array (
    0 => 'function.apache-setenv.php',
    1 => 'apache_setenv',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/apache/functions/apache-response-headers.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.apache-response-headers" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">apache_response_headers</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">apache_response_headers</span> &mdash; <span class="dc-title">获得全部 HTTP 响应 header</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.apache-response-headers-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>apache_response_headers</strong></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">
   获得全部 HTTP 响应 header。可在 Apache、FastCGI、CLI、FPM 模式下运行。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.apache-response-headers-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.apache-response-headers-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回全部 Apache 响应 header 的数组。
  </p>
 </div>

 
 <div class="refsect1 examples" id="refsect1-function.apache-response-headers-examples">
  <h3 class="title">示例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>示例 #1 <span class="function"><strong>apache_response_headers()</strong></span> 示例</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">apache_response_headers</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>以上示例的输出类似于：</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Array
(
    [Accept-Ranges] =&gt; bytes
    [X-Powered-By] =&gt; PHP/4.3.8
)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.apache-response-headers-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.apache-request-headers.php" class="function" rel="rdfs-seeAlso">apache_request_headers()</a> - 获取全部 HTTP 请求 header</span></li>
    <li><span class="function"><a href="function.headers-sent.php" class="function" rel="rdfs-seeAlso">headers_sent()</a> - 检测消息头是否已经发送</span></li>
    <li><span class="function"><a href="function.headers-list.php" class="function" rel="rdfs-seeAlso">headers_list()</a> - 返回已发送的 HTTP 响应头（或准备发送的）</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>