I was used to get_headers() function
`$`url = 'http://stackoverflow.com';
$s=get_headers(`$`url, 1);
print_r(`$`s);
then i got output like
Array ( [0] => HTTP/1.1 200 OK [Cache-Control] => public, max-age=27 [Content-Type] => text/html; charset=utf-8 [Expires] => Mon, 07 Nov 2011 13:44:38 GMT [Last-Modified] => Mon, 07 Nov 2011 13:43:38 GMT [Vary] => * [Date] => Mon, 07 Nov 2011 13:44:10 GMT [Connection] => close [Content-Length] => 195251 )
How can display like
Cache-Control :
Content-Type :
Expires :
Last-Modified :
Connection :
Content-Length :