ballouta Posted April 11, 2008 Share Posted April 11, 2008 Hello I have many valid email address but I do not have any idea about the countries listed in (yahoo, hotmail, maktoob etc..) is there any script that can detect each email's country in order to classify them and arrange them each country alone? Thank You Link to comment https://forums.phpfreaks.com/topic/100727-countries-classification-script/ Share on other sites More sharing options...
friedemann_bach Posted April 11, 2008 Share Posted April 11, 2008 I'm not sure whether I understand your question, but why don't you extract the top level domain (e. g. .it, .ru, .de, .ch and so on), and you will know the country in most cases, if it's not .net or .com. This could be done by a regex search (preg_search()). If it helps I can try to set up a regular expression for you. Link to comment https://forums.phpfreaks.com/topic/100727-countries-classification-script/#findComment-515255 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.