(PHP 8 >= 8.5.0)
Uri\WhatWg\Url::getPath — Retrieve the path component
この関数にはパラメータはありません。
Returns the path component as a string.
例1 Uri\WhatWg\Url::getPath() basic example
<?php
$url = new \Uri\WhatWg\Url("https://example.com/foo/bar");
echo $url->getPath();
?>上の例の出力は以下となります。
/foo/bar