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.


Examples

예제 #1 apache_response_headers() 예제

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

위의 예는 다음과 유사한 결과를 출력합니다.

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

기타