Uri\WhatWg\Url::toUnicodeString
PHP function
Edit on GitHub ✎
(PHP 8 >= 8.5.0)
Recompose the URL as a Unicode String
Description
Uri\WhatWg\Url::toUnicodeString(): string
Recomposes the URL as a String, where the host component may contain Unicode characters.
Parameters Parameters
Return Values
Returns the recomposed URL as a Unicode String.
Examples
Uri\WhatWg\Url::toUnicodeString basic example
php
<?php
$url = new \Uri\WhatWg\Url("https://example.com/foo/bar?baz");
echo $url->toUnicodeString();
?>The above example will output:
output
https://example.com/foo/bar?bazSee Also
Uri\WhatWg\Url::toAsciiStringUri\Rfc3986\Uri::toRawStringUri\Rfc3986\Uri::toString