I am trying to put together a script and need to be able to list a number of countries and to then say, in the script, if the country is listed in the above do something...
The problem is that I do not want to have to specify each and every country in the statement. - I literally want to be able to just say that if something is listed in the above list it should be handled as follows...
I have already tried using an array, foreach statement, and preg_match... but there literally seems to be no way of doing this in PHP. Can anyone suggest a workaround or something (preferably not Javascript) that will work with PHP to enable the functionality that I need?