update page now

Uri\Rfc3986\Uri::getRawFragment

(PHP 8 >= 8.5.0)

Uri\Rfc3986\Uri::getRawFragmentRécupère le composant fragment brut

Description

public Uri\Rfc3986\Uri::getRawFragment(): ?string

Récupère le composant fragment brut.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Retourne le composant fragment brut sous forme de chaîne de caractères si le composant fragment existe, null est retourné sinon.

Exemples

Exemple #1 Exemple simple avec Uri\Rfc3986\Uri::getRawFragment()

<?php
$uri
= new \Uri\Rfc3986\Uri("https://example.com#foo=bar");

echo
$uri->getRawFragment();
?>

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