(PHP 8 >= 8.5.0)
Uri\Rfc3986\Uri::getPath — Récupère le composant chemin normalisé
Cette fonction ne contient aucun paramètre.
Retourne le composant chemin normalisé sous forme de chaîne de caractères.
Exemple #1 Exemple simple avec Uri\Rfc3986\Uri::getPath()
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com/foo/bar");
echo $uri->getPath();
?>L'exemple ci-dessus va afficher :
/foo/bar