<?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 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.apache-response-headers.php',
    1 => 'apache_response_headers',
    2 => 'Fetch all HTTP response headers',
  ),
  'up' => 
  array (
    0 => 'ref.apache.php',
    1 => 'Apache Functions',
  ),
  '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' => 'en',
    '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">Fetch all HTTP response headers</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.apache-response-headers-description">
  <h3 class="title">Description</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">
   Fetch all HTTP response headers.  Works in the
   Apache, FastCGI, CLI, and FPM webservers.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.apache-response-headers-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">This function has no parameters.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.apache-response-headers-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   An array of all Apache response headers on success.
  </p>
 </div>

 
 <div class="refsect1 examples" id="refsect1-function.apache-response-headers-examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Example #1 <span class="function"><strong>apache_response_headers()</strong></span> example</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>The above example will output
something similar to:</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">See Also</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> - Fetch all HTTP request headers</span></li>
    <li><span class="function"><a href="function.headers-sent.php" class="function" rel="rdfs-seeAlso">headers_sent()</a> - Checks if or where headers have been sent</span></li>
    <li><span class="function"><a href="function.headers-list.php" class="function" rel="rdfs-seeAlso">headers_list()</a> - Returns a list of response headers sent (or ready to send)</span></li>
   </ul>
  </p>
 </div>

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