update page now

Uri\Rfc3986\Uri::getPath

(PHP 8 >= 8.5.0)

Uri\Rfc3986\Uri::getPathRécupère le composant chemin normalisé

Description

public Uri\Rfc3986\Uri::getPath(): string

Récupère le composant chemin normalisé.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Retourne le composant chemin normalisé sous forme de chaîne de caractères.

Exemples

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

Voir aussi

add a note

User Contributed Notes

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