public static function hostParts($host = null) {
		if (empty($host)) {
			$host = self::host();
		}
		$host = str_replace(['http://', 'https://', '/'], '', $host);
		$temp = explode('.', $host);
		krsort($temp);
		$result = [];
		$counter = 1;
		foreach ($temp as $k => $v) {
			$result[$counter] = $v;
			$counter++;
		}
		return $result;
	}
public static function hostParts($host = null) {
		if (empty($host)) {
			$host = self::host();
		}
		$host = str_replace(['http://', 'https://', '/'], '', $host);
		$temp = explode('.', $host);
		krsort($temp);
		$result = [];
		$counter = 1;
		foreach ($temp as $k => $v) {
			$result[$counter] = $v;
			$counter++;
		}
		return $result;
	}
public static function hostParts ( $ host = null ) { if ( empty ( $ host ) ) { $ host = self :: host ( ) ; } $ host = str_replace ( [ 'http://' , 'https://' , '/' ] , '' , $ host ) ; $ temp = explode ( '.' , $ host ) ; krsort ( $ temp ) ; $ result = [ ] ; $ counter = 1 ; foreach ( $ temp as $ k => $ v ) { $ result [ $ counter ] = $ v ; $ counter ++ ; } return $ result ; }
Get host parts

@param string $host
@return array
Get host parts