Can someone tell me how to strip anything that appears between http:// and /? For example, http://something/ or http://something.something.something/ so it changes to just /?
Assuming you're working with a URL and not a long string containing a url...
$path = parse_url($url, PHP_URL_PATH);
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With