dsp77 Posted September 6, 2010 Share Posted September 6, 2010 Hello ppl, I have this website link http://www.somesite.com/anotherpage/yetotherpage.html what i want to make is using preg_replace that the final result will be www.somesite.com Quote Link to comment https://forums.phpfreaks.com/topic/212668-preg_replace-help/ Share on other sites More sharing options...
Adam Posted September 6, 2010 Share Posted September 6, 2010 You don't need preg_replace() for that, you can just use parse_url. Quote Link to comment https://forums.phpfreaks.com/topic/212668-preg_replace-help/#findComment-1107833 Share on other sites More sharing options...
dsp77 Posted September 6, 2010 Author Share Posted September 6, 2010 thank you Quote Link to comment https://forums.phpfreaks.com/topic/212668-preg_replace-help/#findComment-1107836 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.