Url.getHost
getHost() -> string
Description
Get the host
part of the Url.
$siteUrl = url'http://mysite.com/home' $siteUrl.getHost() //= 'mysite.com'
Get the host
part of the Url.
$siteUrl = url'http://mysite.com/home' $siteUrl.getHost() //= 'mysite.com'