thecard Posted July 15, 2008 Share Posted July 15, 2008 If I've got a variable which is a string of a URL, how can I strip the string down to just the name: e.g. http://www.phpfreaks.com/forums/index.php?action=post;board=1.0 goes to: phpfreaks.com is there a way? Link to comment https://forums.phpfreaks.com/topic/114898-solved-quotstrippingquot-urls/ Share on other sites More sharing options...
widox Posted July 15, 2008 Share Posted July 15, 2008 Check out the parse_url() function http://us2.php.net/function.parse-url Link to comment https://forums.phpfreaks.com/topic/114898-solved-quotstrippingquot-urls/#findComment-590877 Share on other sites More sharing options...
thecard Posted July 15, 2008 Author Share Posted July 15, 2008 One word: AWESOME. Really didn't expect it to be that easy. Nice one widox. Link to comment https://forums.phpfreaks.com/topic/114898-solved-quotstrippingquot-urls/#findComment-590879 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.