get_last_response_header
get_last_response_header($num=-1); - gets the last header received by the browser. When when tracking the browser's RAW exchange is enabled, all headers received by the browser are included in the list of received headers. The list has a limited size. By default, this is 100 items. Change this size with the set_arrays_count. The most recent item is stored at the end of the list. As the list fills up, if the maximum length is exceeded, the very first item in the list is deleted. (available from version 7.0.37)
The input function accepts parameters:
$num – title number in the list of received titles. (for $num-1, the last element of the list is taken)
After testing, the function returns the result of its work to the script :
the header received by the browser – the specified received header from the list of saved headers
false – there is no such element in the array