The $http_response_headerarray is similar to the
get_headers() function. When using the
HTTP wrapper,
$http_response_header will be populated with the HTTP
response headers. $http_response_header will be created
in the local scope.
Examples
Example #1 $http_response_header example
<?php
function get_contents() {
file_get_contents("http://example.com");
var_dump($http_response_header); // variable is populated in the local scope
}
get_contents();
var_dump($http_response_header); // a call to get_contents() does not populate the variable outside the function scope
?>
The above example will output
something similar to: