Zend\Uri\Http::validateHost
Validate the host part of an HTTP URI
This overrides the common URI validation method with a DNS or IP only default. Users may still enforce allowing other host types.
Signature
public function validateHost(string
$host,
[int
$allowed = self::HOST_DNS_OR_IPV4_OR_IPV6] )
Parameters
$host
— string$allowed
— int
Returns
- bool