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
Name | Type(s) | Description |
---|---|---|
scheme (optional) | ||
httpHost (optional) | string | HTTP host to use or leave blank for current host |
Return value
string
API reference based on ProcessWire core version 3.0.236