(PHP 8 >= 8.5.0)
Uri\WhatWg\Url::getPath — Retrieve the path component
Bu işlevin bağımsız değişkeni yoktur.
Returns the path component as a string.
Örnek 1 Uri\WhatWg\Url::getPath() basic example
<?php
$url = new \Uri\WhatWg\Url("https://example.com/foo/bar");
echo $url->getPath();
?>Yukarıdaki örneğin çıktısı:
/foo/bar