(PHP 8 >= 8.5.0)
Uri\WhatWg\Url::getPath — Retrieve the path component
Diese Funktion besitzt keine Parameter.
Returns the path component as a String.
Beispiel #1 Uri\WhatWg\Url::getPath() basic example
<?php
$url = new \Uri\WhatWg\Url("https://example.com/foo/bar");
echo $url->getPath();
?>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:
/foo/bar