Hi E's, I need to get to inside a variable the country acronym inside URL.
The URL was dynamic, and in all cases the acronym appear in URL.
The URL can have this address:
What I want get is 'en', and 'en' can be any country acronym (like pt, es, it, no). If the client just type www.example.com
(without acronym) the script can give me variable with value 0.
How I do this?