Uri\WhatWg\Url::toUnicodeString
PHP Manual
PHP Manual»Uri\WhatWg\Url»Uri\WhatWg\Url::toUnicodeString

Uri\WhatWg\Url::toUnicodeString

(PHP 8 >= 8.5.0)

Uri\WhatWg\Url::toUnicodeStringRecompose the URL as a Unicode string

Опис

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

Recomposes the URL as a string, where the host component may contain Unicode characters.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Returns the recomposed URL as a Unicode string.

Приклади

Приклад #1 Uri\WhatWg\Url::toUnicodeString() basic example

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

echo $url->toUnicodeString();
?>

Поданий вище приклад виведе:

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

Прогляньте також

To Top