Skip to content

Request: getUri Example

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

Extends Message.

getUri()

  • return UriInterface

Example:

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