-
Notifications
You must be signed in to change notification settings - Fork 2
Uri: getHost Example
Terry L edited this page Jun 18, 2020
·
3 revisions
-
return
string
Example:
$uri = new \Shieldon\Psr7\Uri(
'https://terry:[email protected]:8888/phpMyAdmin/'
);
echo $uri->getHost();
// Outputs: example.com
composer require shieldon/psr-http
Shieldon PSR HTTP implementation written by Terry L. from Taiwan.