phasync
Uri / withFragment

Method

Uri::withFragment

Returns a copy of the URI with the fragment replaced.

Description#

public Uri::withFragment(
    $fragment
): UriInterface

Parameters#

$fragment

Return values#

UriInterface

See also#

  • Psr\Http\Message\UriInterface::withFragment