/*
array get_headers ( string $url [, int $format = 0 ] )
*/
$url = 'http://www.collectivesolver.com';
echo "<pre>" . print_r(get_headers($url), 1) . "</pre>";
/*
run:
Array
(
[0] => HTTP/1.0 200 OK
[1] => X-Powered-By: PHP/5.4.45
[2] => Set-Cookie: PHPSESSID=2cjoijasd76wsdfshdnjm3; path=/
[3] => Expires: Thu, 19 Nov 1981 08:52:00 GMT
[4] => Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
[5] => Pragma: no-cache
[6] => Set-Cookie: qa_key=2edtw3asdjfsdh76sdfstk41m11di; expires=Fri, 18-Dec-2015 09:57:15
[7] => Content-Type: text/html; charset=utf-8
[8] => Vary: Accept-Encoding
[9] => Date: Wed, 16 Dec 2015 09:57:15 GMT
[10] => Accept-Ranges: bytes
[11] => Server: LiteSpeed
[12] => Connection: close
)
*/