Uri\Rfc3986\Uri::getRawPath
Retrieve the raw path component
説明
public string Uri\Rfc3986\Uri::getRawPath()
Retrieves the raw (non-normalized) path component.
戻り値
Returns the raw path component as a string.
例
例1 Uri\Rfc3986\Uri::getRawPath basic example
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com/foo/bar");
echo $uri->getRawPath();
?>
参考
- Uri\Rfc3986\Uri::getPath
- Uri\Rfc3986\Uri::withPath
- Uri\WhatWg\Url::getPath