Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Uri\WhatWg\Url::withUsernameUri\UriException>
^URILast updated: Mon, 26 Oct 2026

The Uri\UriComparisonMode enum

(PHP 8 >= 8.5.0)

Introduction

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.

Enum synopsis

namespace Uri;
enum UriComparisonMode
{
case IncludeFragment ; //The fragment component is included in the comparison.

case ExcludeFragment ; //The fragment component is excluded from the comparison.

}

<Uri\WhatWg\Url::withUsernameUri\UriException>
^URILast updated: Mon, 26 Oct 2026