- print_r: documentation ( source)
<?php
print_r(http_parse_headers("HTTP/1.1 304 Not Modified
Server: nginx
Date: Thu, 19 Nov 2015 14:50:12 GMT
Set-Cookie: _ga=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0
_gat=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0
Strict-Transport-Security: max-age=31536000
content-security-policy-report-only: default-src 'none'; script-src 'self' cdn.jsdelivr.net www.google-analytics.com blob: 'unsafe-inline'; child-src 'self' cdn.jsdelivr.net blob:; connect-src 'self'; img-src 'self' www.google-analytics.com data:; style-src 'self' 'unsafe-inline'; frame-src 'self' cdn.jsdelivr.net blob:; report-uri /cspReport
Cache-Control: public
Last-Modified: Thu, 19 Nov 2015 14:50:12 GMT
Expires: Thu, 19 Nov 2015 14:50:57 GMT
X-Firefox-Spdy: 3.1"));