Uri\Rfc3986\Uri::getRawScheme
PHP function
Edit on GitHub ✎
(PHP 8 >= 8.5.0)
Retrieve the raw scheme component
Description
Uri\Rfc3986\Uri::getRawScheme(): string|null
Retrieves the raw (non-normalized) scheme component.
Parameters Parameters
Return Values
Returns the raw scheme component as a String if the scheme component exists, null is returned otherwise.
Examples
Uri\Rfc3986\Uri::getRawScheme basic example
php
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com");
echo $uri->getRawScheme();
?>The above example will output:
output
httpsSee Also
Uri\Rfc3986\Uri::getSchemeUri\Rfc3986\Uri::withSchemeUri\WhatWg\Url::getScheme