Uri\WhatWg\Url::toUnicodeString

(PHP 8 >= 8.5.0)

Uri\WhatWg\Url::toUnicodeString — Recompose 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://xn--tst-qla.example.com/foo/bar?baz");

echo $url->toUnicodeString();

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

https://täst.example.com/foo/bar?baz

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

+add a note

User Contributed Notes

There are no user contributed notes for this page.