/**
  * isAirhphone()
  *
  * #test isAirhphone1
  * <code>
  * #true(sfMobileCarrierJP::isAirhphoneIp("61.198.249.3"));
  * </code>
  * #test isAirhphone2
  * <code>
  * #false(sfMobileCarrierJP::isAirhphoneIp("210.146.60.240"));
  * #false(sfMobileCarrierJP::isAirhphoneIp("211.5.2.128"));
  * #false(sfMobileCarrierJP::isAirhphoneIp("210.136.161.255"));
  * </code>
  */
 public static function isAirhphoneIp($ip)
 {
     $i = ip2long($ip);
     $cidrs = sfMobileCarrierJP::getAirhphoneCidr();
     foreach ($cidrs as $cidr) {
         if (sfMobileCarrierJP::inCidr($ip, $cidr["ip"], $cidr["subnetmask"])) {
             return true;
         }
     }
     return false;
 }