SyntaxFix
Write A Post
Hire A Developer
Questions
Something like this ought to do:
$url = preg_replace("|^.+?://|", "", $url);
Removes everything up to and including the ://
://