{{-- 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. --}}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter