{{-- 
This function will return an array, providing an easy and efficient way to work with the data.
--}}

function getUrl(string $url): array {
        filter_var($url, FILTER_SANITIZE_URL);
        return explode('/', $url);
}

{{--
The data retrieved can now easily be parsed at this point to either check for shitty Russian bots and string injection...or even to merely check for legitimate users in order to help out an end user who is lost.
 --}}