Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 4467

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Converts an long integer address into a string in (IPv4) Internet standard dotted format</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.ip2long.html">ip2long</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.openlog.html">openlog</a></div>
 <div class="up"><a href="ref.network.html">Network Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.long2ip" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">long2ip</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">long2ip</span> &mdash; <span class="dc-title">Converts an long integer address into a string in (IPv4) Internet standard dotted format</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.long2ip-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>long2ip</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$proper_address</code></span>
   )</div>

  <p class="para rdfs-comment">
   The function <span class="function"><strong>long2ip()</strong></span> generates an Internet address
   in dotted format (i.e.: aaa.bbb.ccc.ddd) from the long integer
   representation.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.long2ip-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">proper_address</code></dt>

     <dd>

      <p class="para">
       A proper address representation in long integer.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.long2ip-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns the Internet IP address as a string.
  </p>
 </div>


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

    </thead>

    <tbody class="tbody">
     <tr>
      <td>7.1.0</td>
      <td>
       The parameter type of <code class="parameter">proper_address</code> has been
       changed from <span class="type"><a href="language.types.string.html" class="type string">string</a></span> to <span class="type"><a href="language.types.integer.html" class="type integer">integer</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">
    On 32-bit architectures, casting integer representations of IP addresses
    from <span class="type"><a href="language.types.string.html" class="type string">string</a></span> to <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> is not suppossed to give
    correct results for numbers which exceed <strong><code>PHP_INT_MAX</code></strong>.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.long2ip-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.ip2long.html" class="function" rel="rdfs-seeAlso">ip2long()</a> - Converts a string containing an (IPv4) Internet Protocol dotted address into a long integer</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.ip2long.html">ip2long</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.openlog.html">openlog</a></div>
 <div class="up"><a href="ref.network.html">Network Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>