<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.network.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.long2ip.php',
    1 => 'long2ip',
    2 => 'Convertit une adresse entier long (IPv4) en sa notation d&eacute;cimale &agrave; point',
  ),
  'up' => 
  array (
    0 => 'ref.network.php',
    1 => 'Fonctions r&eacute;seaux',
  ),
  'prev' => 
  array (
    0 => 'function.ip2long.php',
    1 => 'ip2long',
  ),
  'next' => 
  array (
    0 => 'function.net-get-interfaces.php',
    1 => 'net_get_interfaces',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/network/functions/long2ip.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.long2ip" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">long2ip</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">long2ip</span> &mdash; <span class="dc-title">Convertit une adresse entier long (IPv4) en sa notation décimale à point</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.long2ip-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>long2ip</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$ip</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   La fonction <span class="function"><strong>long2ip()</strong></span> génère une adresse Internet
   en notation décimale à point (format aaa.bbb.ccc.ddd)
   à partir de sa représentation entier long.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.long2ip-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">ip</code></dt>
     <dd>
      <p class="para">
       Une propre représentation d&#039;une adresse sous forme entier long
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.long2ip-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Retourne l&#039;adresse IP Internet, sous la forme d&#039;une <a href="language.types.string.php" class="link">chaîne de caractères</a>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.long2ip-changelog">
  <h3 class="title">Historique</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.4.0</td>
      <td>
       Le type de retour est passé de <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> à <span class="type"><a href="language.types.string.php" class="type string">string</a></span>.
      </td>
     </tr>

     <tr>
      <td>7.1.0</td>
      <td>
       Le type du paramètre <code class="parameter">ip</code> a été
       modifié de <span class="type"><a href="language.types.string.php" class="type string">string</a></span> en <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 notes" id="refsect1-function.long2ip-notes">
  <h3 class="title">Notes</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    Sur les architectures 32-bits, transtyper la représentation d&#039;adresses IP de
    <span class="type"><a href="language.types.string.php" class="type string">string</a></span> à <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> ne donnera pas de résultats
    corrects pour les nombres qui dépassent <strong><code><a href="reserved.constants.php#constant.php-int-max">PHP_INT_MAX</a></code></strong>.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.long2ip-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ip2long.php" class="function" rel="rdfs-seeAlso">ip2long()</a> - Convertit une cha&icirc;ne contenant une adresse (IPv4) en notation d&eacute;cimale &agrave; point en une adresse entier long</span></li>
   </ul>
  </p>
 </div>


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