Advertisement
Guest User

Untitled

a guest
Jun 28th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. <?php
  2.  
  3. function nationalityflag($arg) {
  4. switch ($arg) {
  5. case 'Argentina': return 'AR'; break;
  6. case 'Germany': return 'DE'; break;
  7. case 'France': return 'FR'; break;
  8. case 'Italy': return 'IT'; break;
  9. case 'Brazil': return 'BR'; break;
  10. case 'Cote dIvoire': return 'CI'; break;
  11. case 'Netherlands': return 'NL'; break;
  12. case 'Uruguay': return 'UY'; break;
  13. case 'Sweden': return 'SE'; break;
  14. case 'Congo DR': return 'CG'; break;
  15. case 'Austria': return 'AT'; break;
  16. case 'Spain': return 'ES'; break;
  17. case 'Chile': return 'CL'; break;
  18. case 'Morocco': return 'MA'; break;
  19. case 'United States': return 'US'; break;
  20. case 'Poland': return 'PL'; break;
  21. case 'Japan': return 'JP'; break;
  22. case 'Czech Republic': return 'CZ'; break;
  23. case 'Switzerland': return 'CH'; break;
  24. case 'Serbia': return 'RS'; break;
  25. case 'Bosnia-Herzegovina': return 'BA'; break;
  26. case 'Benin': return 'BJ'; break;
  27. case 'Croatia': return 'HR'; break;
  28. case 'Latvia': return 'LV'; break;
  29. case 'Turkey': return 'TR'; break;
  30. case 'Iceland': return 'IS'; break;
  31. case 'South Korea': return 'KR'; break;
  32. case 'Greece': return 'GR'; break;
  33. case 'Estonia': return 'EE'; break;
  34. case 'Ghana': return 'GH'; break;
  35. case 'Paraguay': return 'PY'; break;
  36. case 'Norway': return 'NO'; break;
  37. case 'Tunisia': return 'TN'; break;
  38. case 'Ukraine': return 'UA'; break;
  39. case 'Gabon': return 'GA'; break;
  40. case 'Korea South': return 'KR'; break ;
  41. case 'Slovakia': return 'SK'; break ;
  42. case 'Australia': return 'AU'; break ;
  43. case 'Slovenia': return 'SI'; break ;
  44. case 'Mexico': return 'MX'; break ;
  45. case 'Costa Rica': return 'CR'; break ;
  46. case 'Georgia': return 'GE'; break ;
  47. case 'Portugal': return 'PT'; break ;
  48. case 'Hungary': return 'HU'; break ;
  49. case 'Denmark': return 'DK'; break ;
  50. case 'Senegal': return 'SN'; break ;
  51. case 'Albania': return 'AL'; break ;
  52. case 'Nigeria': return 'NG'; break ;
  53. case 'Colombia': return 'CO'; break ;
  54. case 'Cameroon': return 'CM'; break ;
  55. case 'Kazakhstan': return 'KZ'; break ;
  56. case 'Israel': return 'IL'; break ;
  57. case 'Peru': return 'PE'; break ;
  58. case 'Mali': return 'ML'; break ;
  59. case 'Armenia': return 'AM'; break ;
  60. case 'Belgium': return 'BE'; break ;
  61. case 'Guinea': return 'GN'; break ;
  62. case 'Finland': return 'FI'; break ;
  63. case 'Romania': return 'RO'; break ;
  64. case 'Azerbaijan': return 'AZ'; break;
  65. default: return 'ZZ'; break;
  66. }
  67. }
  68.  
  69. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement