i need a php function to extract domain with tld from a url or domain with tld and subdomain if there is.
example:
http://minova.tumblr.com/post/145515 >> minova.tumblr.com
http://www.tumblr.com/about/1 >> tumblr.com
Thanks
See Question&Answers more detail:os