<?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.getscheme.php',
    1 => 'Uri\\Rfc3986\\Uri::getScheme',
    2 => 'R&eacute;cup&egrave;re le composant sch&eacute;ma normalis&eacute;',
  ),
  'up' => 
  array (
    0 => 'class.uri-rfc3986-uri.php',
    1 => 'Uri\\Rfc3986\\Uri',
  ),
  'prev' => 
  array (
    0 => 'uri-rfc3986-uri.getrawusername.php',
    1 => 'Uri\\Rfc3986\\Uri::getRawUsername',
  ),
  'next' => 
  array (
    0 => 'uri-rfc3986-uri.getuserinfo.php',
    1 => 'Uri\\Rfc3986\\Uri::getUserInfo',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/uri/uri/rfc3986/uri/getscheme.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

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

 </div>

 <div class="refsect1 description" id="refsect1-uri-rfc3986-uri.getscheme-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::getScheme</strong></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>

  <p class="simpara">
   Récupère le composant schéma 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.getscheme-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.getscheme-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="simpara">
   Retourne le composant schéma normalisé sous forme de <a href="language.types.string.php" class="link">chaîne de caractères</a> si le composant schéma existe, <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> est retourné sinon.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-uri-rfc3986-uri.getscheme-examples">
  <h3 class="title">Exemples</h3>
  <div class="example" id="uri-rfc3986-uri.getscheme.example.basic">
   <p><strong>Exemple #1 Exemple simple avec <span class="methodname"><strong>Uri\Rfc3986\Uri::getScheme()</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"</span><span style="color: #007700">);

echo </span><span style="color: #0000BB">$uri</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getScheme</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">https</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-uri-rfc3986-uri.getscheme-seealso">
  <h3 class="title">Voir aussi</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="uri-rfc3986-uri.getrawscheme.php" class="methodname" rel="rdfs-seeAlso">Uri\Rfc3986\Uri::getRawScheme()</a> - R&eacute;cup&egrave;re le composant sch&eacute;ma brut</span></li>
   <li><span class="methodname"><a href="uri-rfc3986-uri.withscheme.php" class="methodname" rel="rdfs-seeAlso">Uri\Rfc3986\Uri::withScheme()</a> - Modifie le composant sch&eacute;ma</span></li>
   <li><span class="methodname"><a href="uri-whatwg-url.getscheme.php" class="methodname" rel="rdfs-seeAlso">Uri\WhatWg\Url::getScheme()</a> - R&eacute;cup&egrave;re le composant sch&eacute;ma</span></li>
  </ul>
 </div>

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