Skip to content

Uri: getAuthority Example

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

getAuthority()

  • return string

Example:

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

echo $uri->getAuthority();
// Outputs: terry:[email protected]:8888
Clone this wiki locally