src/Functions/ExtendedOperations/ValidityFunctions.php
public function isPostalState(string $value): bool
    {
        return (bool) (in_array(strtoupper(trim($value)), array_keys($this->postalStates)) !== false);
    }
public function isPostalState(string $value): bool
    {
        return (bool) (in_array(strtoupper(trim($value)), array_keys($this->postalStates)) !== false);
    }
public function isPostalState ( string $ value ) : bool { return ( bool ) ( in_array ( strtoupper ( trim ( $ value ) ) , array_keys ( $ this -> postalStates ) ) !== false ) ; }
Validation Postal State Address.

@param string $value The state abbreviation whitelist (e.g., CA, AZ, TX)

@return bool
Validation Postal State Address .