(PHP 8 >= 8.5.0)
Uri\Rfc3986\Uri::getRawFragment — Récupère le composant fragment brut
Cette fonction ne contient aucun paramètre.
Retourne le composant fragment brut sous forme de chaîne de caractères si le composant fragment existe, null est retourné sinon.
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