Skip to content

Uri: getScheme Example

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

Shieldon\Psr7\Uri

getScheme()

Retrieve the scheme component of the URI.

  • return string

Example:

$uri = new \Shieldon\Psr7\Uri(
    'https://www.example.com'
);
echo $uri->getScheme();
// Outputs: https