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 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. 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 Link to comment https://forums.phpfreaks.com/topic/212668-preg_replace-help/#findComment-1107836 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.