How to find the exact domain name extension (in PHP)
For one of my projects I had to find the exact domain name extension using a php script. While, this doesn’t seems too hard to do for a simple domain name (i.e domain.com) by just exploding the domain string and separating the two arrays items by the dot character, I had to do it a little bit more...