Skip to content

Uri: getUserInfo Example

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

Shieldon\Psr7\Uri

getUserInfo()

Retrieve the user information component of the URI.

  • return string

Example:

$uri = new \Shieldon\Psr7\Uri(
    'https://terry:1234@example.com:8888/phpMyAdmin/'
);

echo $uri->getUserInfo();
// Outputs: terry:1234
Clone this wiki locally