Uri::withFragment( $fragment ): static

In this article

Return

static

Source

public function withFragment($fragment): UriInterface
{
    if ($this->fragment === $fragment = $this->filterQueryAndFragment($fragment)) {
        return $this;
    }
    $new = clone $this;
    $new->fragment = $fragment;
    return $new;
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.