Given "http://google.com/path-to-page" trip to "google.com"
What php and regex would be appropriate?
Use parse_url and get the host part.
host
1.4m articles
1.4m replys
5 comments
57.0k users