<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.intl.idn.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.idn-to-utf8.php',
    1 => 'idn_to_utf8',
    2 => 'Convert domain name from IDNA ASCII to Unicode',
  ),
  'up' => 
  array (
    0 => 'ref.intl.idn.php',
    1 => 'IDN Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.idn-to-ascii.php',
    1 => 'idn_to_ascii',
  ),
  'next' => 
  array (
    0 => 'class.intlchar.php',
    1 => 'IntlChar',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/intl/idn/idn-to-utf8.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.idn-to-utf8" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">idn_to_utf8</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8, PECL intl &gt;= 1.0.2, PECL idn &gt;= 0.1)</p><p class="refpurpose"><span class="refname">idn_to_utf8</span> &mdash; <span class="dc-title">Convert domain name from IDNA ASCII to Unicode</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.idn-to-utf8-description">
  <h3 class="title">Descrizione</h3>
  <p class="para">Stile procedurale</p>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>idn_to_utf8</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$domain</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$flags</code><span class="initializer"> = <strong><code><a href="intl.constants.php#constant.idna-default">IDNA_DEFAULT</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$variant</code><span class="initializer"> = <strong><code><a href="intl.constants.php#constant.intl-idna-variant-uts46">INTL_IDNA_VARIANT_UTS46</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter reference">&$idna_info</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span><br>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   This function converts a Unicode domain name from an IDNA ASCII-compatible format to plain Unicode, encoded in UTF-8.
  </p> 
  </div>


 <div class="refsect1 parameters" id="refsect1-function.idn-to-utf8-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">domain</code></dt>
     <dd>
      <p class="para">
       Domain to convert in an IDNA ASCII-compatible format.
      </p>
     </dd>
    
    
     <dt><code class="parameter">flags</code></dt>
     <dd>
      <p class="para">
       Conversion options - combination of IDNA_* constants
       (except IDNA_ERROR_* constants).
      </p>
     </dd>
    
    
     <dt><code class="parameter">variant</code></dt>
     <dd>
      <p class="para">
       Either <strong><code><a href="intl.constants.php#constant.intl-idna-variant-2003">INTL_IDNA_VARIANT_2003</a></code></strong> (deprecated as of PHP 7.2.0) for IDNA 2003 or
       <strong><code><a href="intl.constants.php#constant.intl-idna-variant-uts46">INTL_IDNA_VARIANT_UTS46</a></code></strong> (only available as of ICU 4.6) for UTS #46.
      </p>
     </dd>
    
    
     <dt><code class="parameter">idna_info</code></dt>
     <dd>
      <p class="para">
       This parameter can be used only if
       <strong><code><a href="intl.constants.php#constant.intl-idna-variant-uts46">INTL_IDNA_VARIANT_UTS46</a></code></strong> was used for
       <code class="parameter">variant</code>. In that case, it will be filled with an
       array with the keys <code class="literal">&#039;result&#039;</code>, the possibly illegal
       result of the transformation,
       <code class="literal">&#039;isTransitionalDifferent&#039;</code>, a boolean indicating
       whether the usage of the transitional mechanisms of UTS #46 either has
       or would have changed the result and <code class="literal">&#039;errors&#039;</code>,
       which is an <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> representing a bitset of the error
       constants IDNA_ERROR_*.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.idn-to-utf8-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   The domain name in Unicode, encoded in UTF-8,  o <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> in caso di fallimento
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.idn-to-utf8-changelog">
  <h3 class="title">Log delle modifiche</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Versione</th>
       <th>Descrizione</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>7.4.0</td>
       <td>
        The default value of <code class="parameter">variant</code> is now
        <strong><code><a href="intl.constants.php#constant.intl-idna-variant-uts46">INTL_IDNA_VARIANT_UTS46</a></code></strong> instead of the deprecated
        <strong><code><a href="intl.constants.php#constant.intl-idna-variant-2003">INTL_IDNA_VARIANT_2003</a></code></strong>.
       </td>
      </tr>

      <tr>
       <td>7.2.0</td>
       <td>
        <strong><code><a href="intl.constants.php#constant.intl-idna-variant-2003">INTL_IDNA_VARIANT_2003</a></code></strong> has been deprecated; use
        <strong><code><a href="intl.constants.php#constant.intl-idna-variant-uts46">INTL_IDNA_VARIANT_UTS46</a></code></strong> instead.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>

 
 <div class="refsect1 examples" id="refsect1-function.idn-to-utf8-examples">
  <h3 class="title">Esempi</h3>
  <div class="example" id="example-1">
   <p><strong>Example #1 <span class="function"><strong>idn_to_utf8()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #007700">echo </span><span style="color: #0000BB">idn_to_utf8</span><span style="color: #007700">(</span><span style="color: #DD0000">'xn--tst-qla.de'</span><span style="color: #007700">); <br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
  <p class="para">Il precedente esempio visualizzerà:</p>
  <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">täst.de</pre>
</div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.idn-to-utf8-seealso">
  <h3 class="title">Vedere anche:</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.idn-to-ascii.php" class="function" rel="rdfs-seeAlso">idn_to_ascii()</a> - Convert domain name to IDNA ASCII form</span></li>
   </ul>
  </p>
 </div>

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