Uri\WhatWg\Url::toUnicodeString

(PHP 8 >= 8.5.0)

Uri\WhatWg\Url::toUnicodeStringRecompose l'URL sous forme de string Unicode

Description

public function Uri\WhatWg\Url::toUnicodeString(): string

Recompose l'URL sous forme de string, où le composant hôte peut contenir des caractères Unicode.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Retourne l'URL recomposée sous forme de string Unicode.

Exemples

Exemple #1 Exemple simple avec Uri\WhatWg\Url::toUnicodeString()

<?php
$url = new \Uri\WhatWg\Url("https://example.com/foo/bar?baz");

echo $url->toUnicodeString();
?>

L'exemple ci-dessus va afficher :

https://example.com/foo/bar?baz

Voir aussi

add a note

User Contributed Notes

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