Uri\Rfc3986\Uri::getRawPath

(PHP 8 >= 8.5.0)

Uri\Rfc3986\Uri::getRawPathRécupère le composant chemin brut

Description

public function Uri\Rfc3986\Uri::getRawPath(): string

Récupère le composant chemin brut.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Retourne le composant chemin brut sous forme de string.

Exemples

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

Voir aussi

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top