Recompose the normalized URI

# Uri\Rfc3986\Uri::toString

(PHP 8 >= 8.5.0)

Uri\Rfc3986\Uri::toString — Recompose the normalized URI

### Beschreibung

public function Uri\Rfc3986\Uri::toString(): string

Recomposes the normalized URI to a String.

### Parameter-Liste

Diese Funktion besitzt keine Parameter.

### Rückgabewerte

Returns the recomposed normalized URI as a String.

### Beispiele

Beispiel #1 Uri\Rfc3986\Uri::toString() basic example

`<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com/foo/bar?baz");
echo $uri->toString();
?>`

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

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

### Siehe auch

- Uri\Rfc3986\Uri::toRawString() - Recompose the raw URI
- Uri\WhatWg\Url::toAsciiString() - Recompose the URL as an ASCII String
- Uri\WhatWg\Url::toUnicodeString() - Recompose the URL as a Unicode String

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open