Helper/UsstateMapHelper.php
public function getAbbreviationForState($state)
    {
        $abbreviation = array_search($state, self::getMap());
        if (false === $abbreviation) {
            throw new \Exception("Abbreviation requested for unknown state $state.");
        }

        return $abbreviation;
    }
public function getAbbreviationForState($state)
    {
        $abbreviation = array_search($state, self::getMap());
        if (false === $abbreviation) {
            throw new \Exception("Abbreviation requested for unknown state $state.");
        }

        return $abbreviation;
    }
@param $state

@return false|string

@throws \Exception