<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.uri-rfc3986-uri.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'uri-rfc3986-uri.construct.php',
    1 => 'Uri\\Rfc3986\\Uri::__construct',
    2 => 'Construct the Uri object',
  ),
  'up' => 
  array (
    0 => 'class.uri-rfc3986-uri.php',
    1 => 'Uri\\Rfc3986\\Uri',
  ),
  'prev' => 
  array (
    0 => 'class.uri-rfc3986-uri.php',
    1 => 'Uri\\Rfc3986\\Uri',
  ),
  'next' => 
  array (
    0 => 'uri-rfc3986-uri.debuginfo.php',
    1 => 'Uri\\Rfc3986\\Uri::__debugInfo',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/uri/uri/rfc3986/uri/construct.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="uri-rfc3986-uri.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Uri\Rfc3986\Uri::__construct</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.5.0)</p><p class="refpurpose"><span class="refname">Uri\Rfc3986\Uri::__construct</span> &mdash; <span class="dc-title">Construct the Uri object</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-uri-rfc3986-uri.construct-description">
  <h3 class="title">Beschreibung</h3>
  <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Uri\Rfc3986\Uri::__construct</strong></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-rfc3986-uri.php" class="type Uri\Rfc3986\Uri">Uri\Rfc3986\Uri</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>)</div>

  <p class="simpara">
   Constructs the <span class="classname"><a href="class.uri-rfc3986-uri.php" class="classname">Uri\Rfc3986\Uri</a></span> object.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-uri-rfc3986-uri.construct-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   
    <dt><code class="parameter">uri</code></dt>
    <dd>
     <span class="simpara">
      URI to parse.
     </span>
    </dd>
   
   
    <dt><code class="parameter">baseUrl</code></dt>
    <dd>
     <span class="simpara">
      When a <a href="language.types.string.php" class="link">String</a> is passed, <code class="parameter">uri</code> is applied on
      <code class="parameter">baseUrl</code>, if <code class="parameter">uri</code> is a relative reference.
      If either <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> is passed, or <code class="parameter">uri</code> is a not a relative reference, then
      <code class="parameter">baseUrl</code> doesn&#039;t have any effect.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 errors" id="refsect1-uri-rfc3986-uri.construct-errors">
  <h3 class="title">Fehler/Exceptions</h3>
  
  <p class="simpara">
   If the resulting URI is invalid, a <span class="exceptionname"><a href="class.uri-invaliduriexception.php" class="exceptionname">Uri\InvalidUriException</a></span> is thrown.
  </p>

 </div>


 <div class="refsect1 seealso" id="refsect1-uri-rfc3986-uri.construct-seealso">
  <h3 class="title">Siehe auch</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="uri-rfc3986-uri.parse.php" class="methodname" rel="rdfs-seeAlso">Uri\Rfc3986\Uri::parse()</a> - Parse a URI</span></li>
   <li><span class="methodname"><a href="uri-rfc3986-uri.resolve.php" class="methodname" rel="rdfs-seeAlso">Uri\Rfc3986\Uri::resolve()</a> - Resolve a URI with the current object as the base URL</span></li>
   <li><span class="methodname"><a href="uri-whatwg-url.construct.php" class="methodname" rel="rdfs-seeAlso">Uri\WhatWg\Url::__construct()</a> - Construct the Url object</span></li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>