What piece of code would you use to obtain an array of response headers for a given URL, indexed by their respective names?
get_headers($url);
get_header($url);
stream_context_get_headers($url);
get_headers($url, 1);
get_headers($url, ASSOC_HEADERS);
Submit