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