public static function fromHex($hex)
  {
    if(strlen($hex) != 2)
    {
      throw new Exception("given parameter '" . $hex . "' is not a valid hexadecimal number");
    }

    return new self(chr(hexdec($hex)));
  }
public static function fromHex($hex)
  {
    if(strlen($hex) != 2)
    {
      throw new Exception("given parameter '" . $hex . "' is not a valid hexadecimal number");
    }

    return new self(chr(hexdec($hex)));
  }
public static function fromHex ( $ hex ) { if ( strlen ( $ hex ) != 2 ) { throw new Exception ( "given parameter '" . $ hex . "' is not a valid hexadecimal number" ) ; } return new self ( chr ( hexdec ( $ hex ) ) ) ; }
Returns the Char based on a given hex value.

@param  string $hex
@throws Exception
@return Char
Returns the Char based on a given hex value .