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