Display the drop-down list

get_headers()

« get_extension_funcs | get_html_translation_table »
<?php
$array 
get_headers (
    
// string $url
    
?  // [int $format = 0]
);
?>
Result
$array = [
  
=> 'HTTP/1.0 200 OK',
  
'Accept-Ranges' => 'bytes',
  
'Age' => '347019',
  
'Cache-Control' => 'max-age=604800',
  
'Content-Type' => 'text/html; charset=UTF-8',
  
'Date' => 'Thu, 28 Mar 2024 10:24:10 GMT',
  
'Etag' => '"3147526947"',
  
'Expires' => 'Thu, 04 Apr 2024 10:24:10 GMT',
  
'Last-Modified' => 'Thu, 17 Oct 2019 07:18:26 GMT',
  
'Server' => 'ECS (nyd/D105)',
  
'Vary' => 'Accept-Encoding',
  
'X-Cache' => 'HIT',
  
'Content-Length' => '1256',
  
'Connection' => 'close',
]
Examples
#1 get_headers  ("http://www.example.com")
#2 get_headers  ("http://www.example.com",
 
1)