1 min read

Get http header information in php

getallheaders — Fetch all HTTP request headers

 array getallheaders ( void )  

Example

 <?php  
 foreach (getallheaders() as $name => $value) {  
   echo "$name: $valuen";  
 }  
 ?>  

Share your Love

Leave a Reply

Your email address will not be published. Required fields are marked *