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