<?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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'uri-rfc3986-uri.getpath.php',
    1 => 'Uri\\Rfc3986\\Uri::getPath',
    2 => 'R&eacute;cup&egrave;re le composant chemin normalis&eacute;',
  ),
  'up' => 
  array (
    0 => 'class.uri-rfc3986-uri.php',
    1 => 'Uri\\Rfc3986\\Uri',
  ),
  'prev' => 
  array (
    0 => 'uri-rfc3986-uri.getpassword.php',
    1 => 'Uri\\Rfc3986\\Uri::getPassword',
  ),
  'next' => 
  array (
    0 => 'uri-rfc3986-uri.getport.php',
    1 => 'Uri\\Rfc3986\\Uri::getPort',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/uri/uri/rfc3986/uri/getpath.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="uri-rfc3986-uri.getpath" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Uri\Rfc3986\Uri::getPath</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.5.0)</p><p class="refpurpose"><span class="refname">Uri\Rfc3986\Uri::getPath</span> &mdash; <span class="dc-title">Récupère le composant chemin normalisé</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-uri-rfc3986-uri.getpath-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">function</span> <span class="methodname"><strong>Uri\Rfc3986\Uri::getPath</strong></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="simpara">
   Récupère le composant chemin normalisé.
  </p>
  
  <p class="simpara">
   Les triplets hexadécimaux sont convertis en majuscules, les caractères non réservés encodés en pourcentage sont décodés, les composants schéma et hôte sont normalisés en minuscules, et les segments point sont retirés du chemin, conformément à la RFC 3986.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-uri-rfc3986-uri.getpath-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="simpara">Cette fonction ne contient aucun paramètre.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-uri-rfc3986-uri.getpath-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="simpara">
   Retourne le composant chemin normalisé sous forme de <a href="language.types.string.php" class="link">chaîne de caractères</a>.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-uri-rfc3986-uri.getpath-examples">
  <h3 class="title">Exemples</h3>
  <div class="example" id="uri-rfc3986-uri.getpath.example.basic">
   <p><strong>Exemple #1 Exemple simple avec <span class="methodname"><strong>Uri\Rfc3986\Uri::getPath()</strong></span></strong></p>
   <div class="example-contents">
<div class="annotation-interactive phpcode"><pre><code style="color: #000000"><span style="color: #0000BB">&lt;?php
$uri </span><span style="color: #007700">= new </span><span style="color: #0000BB">\Uri\Rfc3986\Uri</span><span style="color: #007700">(</span><span style="color: #DD0000">"https://example.com/foo/bar"</span><span style="color: #007700">);

echo </span><span style="color: #0000BB">$uri</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getPath</span><span style="color: #007700">();
</span><span style="color: #0000BB">?&gt;</span></code></pre></div>
   </div>

   <div class="example-contents"><p>L&#039;exemple ci-dessus va afficher :</p></div>
   <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">/foo/bar</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-uri-rfc3986-uri.getpath-seealso">
  <h3 class="title">Voir aussi</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="uri-rfc3986-uri.getrawpath.php" class="methodname" rel="rdfs-seeAlso">Uri\Rfc3986\Uri::getRawPath()</a> - R&eacute;cup&egrave;re le composant chemin brut</span></li>
   <li><span class="methodname"><a href="uri-rfc3986-uri.withpath.php" class="methodname" rel="rdfs-seeAlso">Uri\Rfc3986\Uri::withPath()</a> - Modifie le composant chemin</span></li>
   <li><span class="methodname"><a href="uri-whatwg-url.getpath.php" class="methodname" rel="rdfs-seeAlso">Uri\WhatWg\Url::getPath()</a> - R&eacute;cup&egrave;re le composant chemin</span></li>
  </ul>
 </div>

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