$inputhttpHostUrl()

Get current scheme and URL for hostname without any path or query string

For example: https://www.domain.com

Usage

// basic usage
$string = $input->httpHostUrl();

// usage with all arguments
$string = $input->httpHostUrl($scheme = null, string $httpHost = '');

Arguments

NameType(s)Description
$scheme (optional)
$httpHost (optional)string

HTTP host to use or leave blank for current host

Return value

string


$input methods and properties

API reference based on ProcessWire core version 3.0.251