$uri->domain()
Returns the domain without scheme, path or query. Includes auth part when not empty. Includes port number when different from 80 or 443.
$uri->domain(): string|null
Return types
string
ornull
This method modifies the existing $uri
object it is applied to and returns it again.