public static function getHost($value)
    {
        if (preg_match(self::REGEXP_TCP, $value, $matches)) {
            return preg_replace("/^http:/", "tcp:", $matches[2]);
        }

        if (preg_match(self::REGEXP_SSL, $value, $matches)) {
            return preg_replace("/^https:/", "ssl:", $matches[2]);
        }

        return null;
    }
public static function getHost($value)
    {
        if (preg_match(self::REGEXP_TCP, $value, $matches)) {
            return preg_replace("/^http:/", "tcp:", $matches[2]);
        }

        if (preg_match(self::REGEXP_SSL, $value, $matches)) {
            return preg_replace("/^https:/", "ssl:", $matches[2]);
        }

        return null;
    }
public static function getHost ( $ value ) { if ( preg_match ( self :: REGEXP_TCP , $ value , $ matches ) ) { return preg_replace ( "/^http:/" , "tcp:" , $ matches [ 2 ] ) ; } if ( preg_match ( self :: REGEXP_SSL , $ value , $ matches ) ) { return preg_replace ( "/^https:/" , "ssl:" , $ matches [ 2 ] ) ; } return null ; }
Return the host name of an endpoint

@param string $value - endpoint specification value

@return string - host name
Return the host name of an endpoint