get_last_request_header
get_last_request_header($num=-1); - gets the last url header requested by the browser. When when tracking the browser's RAW exchange is enabled, all headers requested by the browser are included in the list of requested 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.
the input Function accepts parameters:
$num – the header number of the url requested by the browser in the list of requested headers. (for $num-1, the last element of the list is taken)
After testing, the function returns the result of its work to the script :
url request header – the specified requested url header from the list of saved headers
false – there is no such element in the array