Skip to content

Uri: getHost Example

Terry L edited this page Jun 18, 2020 · 3 revisions

getHost()

  • return string

Example:

$uri = new \Shieldon\Psr7\Uri(
    'https://terry:[email protected]:8888/phpMyAdmin/'
);

echo $uri->getHost();
// Outputs: example.com
Clone this wiki locally