<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.uri-whatwg-url.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'uri-whatwg-url.toasciistring.php',
    1 => 'Uri\\WhatWg\\Url::toAsciiString',
    2 => 'Recompose l\'URL sous forme de cha&icirc;ne de caract&egrave;res ASCII',
  ),
  'up' => 
  array (
    0 => 'class.uri-whatwg-url.php',
    1 => 'Uri\\WhatWg\\Url',
  ),
  'prev' => 
  array (
    0 => 'uri-whatwg-url.serialize.php',
    1 => 'Uri\\WhatWg\\Url::__serialize',
  ),
  'next' => 
  array (
    0 => 'uri-whatwg-url.tounicodestring.php',
    1 => 'Uri\\WhatWg\\Url::toUnicodeString',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/uri/uri/whatwg/url/toasciistring.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="uri-whatwg-url.toasciistring" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Uri\WhatWg\Url::toAsciiString</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.5.0)</p><p class="refpurpose"><span class="refname">Uri\WhatWg\Url::toAsciiString</span> &mdash; <span class="dc-title">Recompose l&#039;URL sous forme de <a href="language.types.string.php" class="link">chaîne de caractères</a> ASCII</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-uri-whatwg-url.toasciistring-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Uri\WhatWg\Url::toAsciiString</strong></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="simpara">
   Recompose l&#039;URL sous forme de <a href="language.types.string.php" class="link">chaîne de caractères</a> ASCII, en utilisant la transcription punycode au lieu des caractères Unicode dans le composant hôte.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-uri-whatwg-url.toasciistring-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">Cette fonction ne contient aucun paramètre.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-uri-whatwg-url.toasciistring-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="simpara">
   Retourne l&#039;URL recomposée sous forme de <a href="language.types.string.php" class="link">chaîne de caractères</a> ASCII.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-uri-whatwg-url.toasciistring-examples">
  <h3 class="title">Exemples</h3>
  <div class="example" id="uri-whatwg-url.toasciistring.example.basic">
   <p><strong>Exemple #1 Exemple simple avec <span class="methodname"><strong>Uri\WhatWg\Url::toAsciiString()</strong></span></strong></p>
   <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$url </span><span style="color: #007700">= new </span><span style="color: #0000BB">\Uri\WhatWg\Url</span><span style="color: #007700">(</span><span style="color: #DD0000">"https://example.com/foo/bar?baz"</span><span style="color: #007700">);<br /><br />echo </span><span style="color: #0000BB">$url</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">toAsciiString</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?&gt;</span></span></code></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://example.com/foo/bar?baz</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-uri-whatwg-url.toasciistring-seealso">
  <h3 class="title">Voir aussi</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="uri-whatwg-url.tounicodestring.php" class="methodname" rel="rdfs-seeAlso">Uri\WhatWg\Url::toUnicodeString()</a> - Recompose l'URL sous forme de cha&icirc;ne de caract&egrave;res Unicode</span></li>
   <li><span class="methodname"><a href="uri-rfc3986-uri.torawstring.php" class="methodname" rel="rdfs-seeAlso">Uri\Rfc3986\Uri::toRawString()</a> - Recompose l'URI brute</span></li>
   <li><span class="methodname"><a href="uri-rfc3986-uri.tostring.php" class="methodname" rel="rdfs-seeAlso">Uri\Rfc3986\Uri::toString()</a> - Recompose l'URI normalis&eacute;e</span></li>
  </ul>
 </div>

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