get_last_request_url
get_last_request_url($num=-1); - gets the last url requested by the browser. When when tracking the browser's RAW exchange is enabled, all URLs requested by the browser are included in the list of requested URLs. 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 – url number in the list of requested URLs. (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 requested by the browser – the specified requested url from the list of saved URLs
false – there is no such element in the array