public function strip_www() {
		if (! $this->is_valid() || \is_null($this->subdomain)) {
			return false;
		}

		if (
			('www' === $this->subdomain) ||
			(0 === \strpos($this->subdomain, 'www.'))
		) {
			$this->subdomain = \preg_replace('/^www\.?/u', '', $this->subdomain);
			if (! \strlen($this->subdomain)) {
				$this->subdomain = null;
			}

			$this->host = \preg_replace('/^www\./u', '', $this->host);
			return true;
		}

		return false;
	}
public function strip_www() {
		if (! $this->is_valid() || \is_null($this->subdomain)) {
			return false;
		}

		if (
			('www' === $this->subdomain) ||
			(0 === \strpos($this->subdomain, 'www.'))
		) {
			$this->subdomain = \preg_replace('/^www\.?/u', '', $this->subdomain);
			if (! \strlen($this->subdomain)) {
				$this->subdomain = null;
			}

			$this->host = \preg_replace('/^www\./u', '', $this->host);
			return true;
		}

		return false;
	}
public function strip_www ( ) { if ( ! $ this -> is_valid ( ) || \ is_null ( $ this -> subdomain ) ) { return false ; } if ( ( 'www' === $ this -> subdomain ) || ( 0 === \ strpos ( $ this -> subdomain , 'www.' ) ) ) { $ this -> subdomain = \ preg_replace ( '/^www\.?/u' , '' , $ this -> subdomain ) ; if ( ! \ strlen ( $ this -> subdomain ) ) { $ this -> subdomain = null ; } $ this -> host = \ preg_replace ( '/^www\./u' , '' , $ this -> host ) ; return true ; } return false ; }
Strip Leading WWW

The www. subdomain is evil. This removes
it, but only if it is part of the subdomain.

@return bool True/false.
Strip Leading WWW