Uri\Rfc3986\Uri::getRawFragment
PHP Manual
PHP Manual»Uri\Rfc3986\Uri»Uri\Rfc3986\Uri::getRawFragment

Uri\Rfc3986\Uri::getRawFragment

(PHP 8 >= 8.5.0)

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

Description

public function 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 string 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

To Top