Apologize if this has already been asked and answered; did a quick search, but, not exactly sure how to word it/what exactly to search for.
I have to web addresses pointing to one site/file(s). One ends in .net [domain.net] and the other ends in .org [domian.org].
Using PHP; I want to put at least the ".net" and/or ".org" part of the URL into a variable to determine what text is displayed.
Something to the effect of:
$domainExt = 'net';
For domain ending with .net; as an example.
Thanks for any help, tips, etc.