public function isValid($domain)
    {
        $this->setFormat('object');
        $Result = $this->parse($domain, '');

        return $Result->validHostname;
    }
public function isValid($domain)
    {
        $this->setFormat('object');
        $Result = $this->parse($domain, '');

        return $Result->validHostname;
    }
public function isValid ( $ domain ) { $ this -> setFormat ( 'object' ) ; $ Result = $ this -> parse ( $ domain , '' ) ; return $ Result -> validHostname ; }
Checks if given domain name is valid

@param  string $domain
@return boolean
Checks if given domain name is valid