public function getCodeFromCountry($country)
    {
        $output = 'OTH';
        if (array_key_exists($country, $this->countriesMapping)) {
            $output = $this->countriesMapping[$country];
        }

        return $output;
    }
public function getCodeFromCountry($country)
    {
        $output = 'OTH';
        if (array_key_exists($country, $this->countriesMapping)) {
            $output = $this->countriesMapping[$country];
        }

        return $output;
    }
public function getCodeFromCountry ( $ country ) { $ output = 'OTH' ; if ( array_key_exists ( $ country , $ this -> countriesMapping ) ) { $ output = $ this -> countriesMapping [ $ country ] ; } return $ output ; }
Get 3-letter country code from full country name

@param $country
@return mixed|string
Get 3 - letter country code from full country name