KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to extract the domain name out of a string which could be anything. Such as: $sitelink="http://www.somewebsite.com/product/3749875/info/overview.html"; or $sitelink="http://subdomain.somewebsite.com/blah/blah/whatever.php"; In any case, I'm looking to extract the 'somewebsite.com' portion (which could be anything), and discard the rest.
Tags (comma-separated)
Save Edits
Cancel