Skip to content

Request: getUri Example

Terry L edited this page Jun 20, 2020 · 4 revisions
Clone this wiki locally

Shieldon\Psr7\Request

Extends Message.

getUri()

Retrieves the URI instance.

  • return UriInterface

Example:

echo $request->getUri()->getHost();
// Outputs: www.example.com