title: PHP - What's a good way to handle this?
body: <p>OK, let's say when a user selects a country, they are also added with a "federation". These federations are pretty much region-centric. </p>
  
  <p>Let's say I have something like this:</p>
  
  <pre><code>function getFedration($country_iso) {
   // 6 federations
   // afc = asian nations
   // caf = african nations
   // cocacaf = north &amp; central america and Caribbean nations
   // conmebol = south america
   // ofc = Oceanian nations
   // uefa = european nations
  
  $afc = array("Japan", "China", "South Korea");
  $caf = array("Cameroon", "Chad", "Ivory Coast");
  $concacaf = array("United States" , "Canada", "Mexico");
  $conmebol = array("Argetina", "Brazil", "Chile");
  $ofc = array("Fiji", "New Zealand", "Samoa");
  $uefa = array("Spain", "England", "Montenegro");
  
  /*
  PSEUDO-code
  
  If $country_iso is in either of six arrays... mark that as the federation...
  
  */
  
  return $federation;
  
  }
  </code></pre>
  
  <p>I know, it says a country's name but when it comes down to it, it will be country's iso like <code>JP</code> instead of <code>Japan</code>, <code>CN</code> instead of <code>China</code>, et cetera.</p>
  
  <p>So, I was wondering, is this a feasible thing or is there a better way you'd think?</p>