Uri\WhatWg\Url::toUnicodeString

(PHP 8 >= 8.5.0)

Uri\WhatWg\Url::toUnicodeString — URL を Unicode string として再構築する

説明

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

URL を string として再構築します。ホストコンポーネントには Unicode 文字が含まれる可能性があります。

パラメータ

この関数にはパラメータはありません。

戻り値

再構築された URL を Unicode string として返します。

例

例1 Uri\WhatWg\Url::toUnicodeString() の基本的な例

<?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.