php8.5
Home/ Manual/ reference / uri/ The Uri\UriComparisonMode enum

The Uri\UriComparisonMode enum

Specifies if the fragment component should affect the result of a URI comparison.

Intro

Specifies if the fragment component should affect the result of a URI comparison.

If the fragment is excluded from the comparison, two URIs will be compared as if neither of them has a fragment component.

Enumsynopsis

UriUriComparisonModeIncludeFragmentThe fragment component is included in the comparison.ExcludeFragmentThe fragment component is excluded from the comparison.

Source: reference/uri/uri.uricomparisonmode.xml · from the official PHP manual (php/doc-en)