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',
  
=> 'Age: 342143',
  
=> 'Cache-Control: max-age=604800',
  
=> 'Content-Type: text/html; charset=UTF-8',
  
=> 'Date: Thu, 28 Mar 2024 09:02:46 GMT',
  
=> 'Etag: "3147526947+gzip+ident"',
  
=> 'Expires: Thu, 04 Apr 2024 09:02:46 GMT',
  
=> 'Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT',
  
=> 'Server: ECS (nyd/D10A)',
  
=> 'Vary: Accept-Encoding',
  
10 => 'X-Cache: HIT',
  
11 => 'Content-Length: 1256',
  
12 => 'Connection: close',
]
Examples
#1 get_headers  ("http://www.example.com")
#2 get_headers  ("http://www.example.com",
 
1)