Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url = 'http://www.cute.com';
- $string = preg_replace('#^https?://#', '', rtrim($url,'/'));
- echo $string;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement