ドロップダウンリストを表示

get_headers()

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