<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.uri.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'class.uri-whatwg-url.php',
    1 => 'Uri\\WhatWg\\Url',
    2 => 'The Uri\\WhatWg\\Url class',
  ),
  'up' => 
  array (
    0 => 'book.uri.php',
    1 => 'URI',
  ),
  'prev' => 
  array (
    0 => 'uri-rfc3986-uri.withuserinfo.php',
    1 => 'Uri\\Rfc3986\\Uri::withUserInfo',
  ),
  'next' => 
  array (
    0 => 'uri-whatwg-url.construct.php',
    1 => 'Uri\\WhatWg\\Url::__construct',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/uri/uri.whatwg.url.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.uri-whatwg-url.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.uri-whatwg-url" class="reference">
 <h1 class="title">The Uri\WhatWg\Url class</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 8 &gt;= 8.5.0)</p>
  <div class="section" id="uri-whatwg-url.intro">
   <h2 class="title">はじめに</h2>
   <p class="simpara">
   </p>
  </div>

  <div class="section" id="uri-whatwg-url.synopsis">
   <h2 class="title">クラス概要</h2>

   <div class="classsynopsis"><div class="classsynopsisinfo">
    <span class="modifier">namespace</span> <strong class="package">Uri\WhatWg</strong>;</div>

    <div class="classsynopsisinfo">
     
      <span class="modifier">final</span>
      <span class="modifier">readonly</span>
      <span class="modifier">class</span> <strong class="classname"><strong class="classname">Url</strong></strong>
      {</div>

     <div class="classsynopsisinfo classsynopsisinfo_comment">/* メソッド */</div>
     <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.construct.php" class="methodname">__construct</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$uri</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="class.uri-whatwg-url.php" class="type Uri\WhatWg\Url">Uri\WhatWg\Url</a></span></span> <code class="parameter">$baseUrl</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter reference">&$softErrors</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>)</div>

     <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.debuginfo.php" class="methodname">__debugInfo</a></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.equals.php" class="methodname">equals</a></span>(<span class="methodparam"><span class="type"><a href="class.uri-whatwg-url.php" class="type Uri\WhatWg\Url">Uri\WhatWg\Url</a></span> <code class="parameter">$url</code></span>, <span class="methodparam"><span class="type"><a href="enum.uri-uricomparisonmode.php" class="type Uri\UriComparisonMode">Uri\UriComparisonMode</a></span> <code class="parameter">$comparisonMode</code><span class="initializer"> = <strong><code>Uri\UriComparisonMode::ExcludeFragment</code></strong></span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.getasciihost.php" class="methodname">getAsciiHost</a></span>(): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.getfragment.php" class="methodname">getFragment</a></span>(): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.getpassword.php" class="methodname">getPassword</a></span>(): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.getpath.php" class="methodname">getPath</a></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.getport.php" class="methodname">getPort</a></span>(): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.integer.php" class="type int">int</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.getquery.php" class="methodname">getQuery</a></span>(): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.getscheme.php" class="methodname">getScheme</a></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.getunicodehost.php" class="methodname">getUnicodeHost</a></span>(): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.getusername.php" class="methodname">getUsername</a></span>(): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="uri-whatwg-url.parse.php" class="methodname">parse</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$uri</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="class.uri-whatwg-url.php" class="type Uri\WhatWg\Url">Uri\WhatWg\Url</a></span></span> <code class="parameter">$baseUrl</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter reference">&$errors</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type">static</span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.resolve.php" class="methodname">resolve</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$uri</code></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter reference">&$softErrors</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type">static</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.serialize.php" class="methodname">__serialize</a></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.toasciistring.php" class="methodname">toAsciiString</a></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.tounicodestring.php" class="methodname">toUnicodeString</a></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.unserialize.php" class="methodname">__unserialize</a></span>(<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$data</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.withfragment.php" class="methodname">withFragment</a></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$fragment</code></span>): <span class="type">static</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.withhost.php" class="methodname">withHost</a></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$host</code></span>): <span class="type">static</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.withpassword.php" class="methodname">withPassword</a></span>(<span class="methodparam"><span class="attribute"><a href="class.sensitiveparameter.php">#[\SensitiveParameter]</a> </span><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$password</code></span>): <span class="type">static</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.withpath.php" class="methodname">withPath</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$path</code></span>): <span class="type">static</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.withport.php" class="methodname">withPort</a></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.integer.php" class="type int">int</a></span></span> <code class="parameter">$port</code></span>): <span class="type">static</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.withquery.php" class="methodname">withQuery</a></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$query</code></span>): <span class="type">static</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.withscheme.php" class="methodname">withScheme</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$scheme</code></span>): <span class="type">static</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="uri-whatwg-url.withusername.php" class="methodname">withUsername</a></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$username</code></span>): <span class="type">static</span></div>

    }
   </div>
  </div>
 </div>

 








































































































<h2>目次</h2><ul class="chunklist chunklist_reference"><li><a href="uri-whatwg-url.construct.php">Uri\WhatWg\Url::__construct</a> — Construct the Url object</li><li><a href="uri-whatwg-url.debuginfo.php">Uri\WhatWg\Url::__debugInfo</a> — Return the internal state of the URL</li><li><a href="uri-whatwg-url.equals.php">Uri\WhatWg\Url::equals</a> — Check if two URLs are equivalent</li><li><a href="uri-whatwg-url.getasciihost.php">Uri\WhatWg\Url::getAsciiHost</a> — Retrieve the host component as an ASCII string</li><li><a href="uri-whatwg-url.getfragment.php">Uri\WhatWg\Url::getFragment</a> — Retrieve the fragment component</li><li><a href="uri-whatwg-url.getpassword.php">Uri\WhatWg\Url::getPassword</a> — Retrieve the password component</li><li><a href="uri-whatwg-url.getpath.php">Uri\WhatWg\Url::getPath</a> — Retrieve the path component</li><li><a href="uri-whatwg-url.getport.php">Uri\WhatWg\Url::getPort</a> — Retrieve the port component</li><li><a href="uri-whatwg-url.getquery.php">Uri\WhatWg\Url::getQuery</a> — Retrieve the query component</li><li><a href="uri-whatwg-url.getscheme.php">Uri\WhatWg\Url::getScheme</a> — Retrieve the scheme component</li><li><a href="uri-whatwg-url.getunicodehost.php">Uri\WhatWg\Url::getUnicodeHost</a> — Retrieve the host component as an Unicode string</li><li><a href="uri-whatwg-url.getusername.php">Uri\WhatWg\Url::getUsername</a> — Retrieve the username component</li><li><a href="uri-whatwg-url.parse.php">Uri\WhatWg\Url::parse</a> — Parse a URL</li><li><a href="uri-whatwg-url.resolve.php">Uri\WhatWg\Url::resolve</a> — Resolve a URL with the current object as the base URL</li><li><a href="uri-whatwg-url.serialize.php">Uri\WhatWg\Url::__serialize</a> — Serialize the Url object</li><li><a href="uri-whatwg-url.toasciistring.php">Uri\WhatWg\Url::toAsciiString</a> — Recompose the URL as an ASCII string</li><li><a href="uri-whatwg-url.tounicodestring.php">Uri\WhatWg\Url::toUnicodeString</a> — Recompose the URL as a Unicode string</li><li><a href="uri-whatwg-url.unserialize.php">Uri\WhatWg\Url::__unserialize</a> — Deserialize the data parameter into a Url object</li><li><a href="uri-whatwg-url.withfragment.php">Uri\WhatWg\Url::withFragment</a> — Modify the fragment component</li><li><a href="uri-whatwg-url.withhost.php">Uri\WhatWg\Url::withHost</a> — Modify the host component</li><li><a href="uri-whatwg-url.withpassword.php">Uri\WhatWg\Url::withPassword</a> — Modify the password component</li><li><a href="uri-whatwg-url.withpath.php">Uri\WhatWg\Url::withPath</a> — Modify the path component</li><li><a href="uri-whatwg-url.withport.php">Uri\WhatWg\Url::withPort</a> — Modify the port component</li><li><a href="uri-whatwg-url.withquery.php">Uri\WhatWg\Url::withQuery</a> — Modify the query component</li><li><a href="uri-whatwg-url.withscheme.php">Uri\WhatWg\Url::withScheme</a> — Modify the scheme component</li><li><a href="uri-whatwg-url.withusername.php">Uri\WhatWg\Url::withUsername</a> — Modify the username component</li></ul>
</div>
<?php manual_footer($setup); ?>