Uri\Rfc3986\Uri::getRawPath
PHP function
Edit on GitHub ✎
(PHP 8 >= 8.5.0)
Retrieve the raw path component
Description
Uri\Rfc3986\Uri::getRawPath(): string
Retrieves the raw (non-normalized) path component.
Parameters Parameters
Return Values
Returns the raw path component as a String.
Examples
Uri\Rfc3986\Uri::getRawPath basic example
php
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com/foo/bar");
echo $uri->getRawPath();
?>The above example will output:
output
/foo/barSee Also
Uri\Rfc3986\Uri::getPathUri\Rfc3986\Uri::withPathUri\WhatWg\Url::getPath