_validHost

Validate that a hostname (for example $_SERVER['HTTP_HOST']) is safe.

Parameters
string $host

The host name

#
Returns
boolean

TRUE if only containing valid characters, or FALSE otherwise.