RETURNS URL AS AN ARRAY

PHOTO EMBED

Fri Dec 31 2021 19:26:33 GMT+0000 (Coordinated Universal Time)

Saved by @lhherrod

{{-- 
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.
 --}}
content_copyCOPY