mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
106 lines
3.5 KiB
HTML
106 lines
3.5 KiB
HTML
<!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>将长整型转化为字符串形式带点的互联网标准格式地址(IPV4)</title>
|
||
</head>
|
||
<body class="docs"><div id="layout">
|
||
<div id="layout-content"><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> — <span class="dc-title">将长整型转化为字符串形式带点的互联网标准格式地址(IPV4)</span></p>
|
||
|
||
</div>
|
||
|
||
<div class="refsect1 description" id="refsect1-function.long2ip-description">
|
||
<h3 class="title">说明</h3>
|
||
<div class="methodsynopsis dc-description">
|
||
<span class="methodname"><strong>long2ip</strong></span>
|
||
( <span class="methodparam"><span class="type">int</span> <code class="parameter">$proper_address</code></span>
|
||
) : <span class="type">string</span></div>
|
||
|
||
<p class="para rdfs-comment">
|
||
<span class="function"><strong>long2ip()</strong></span> 函数通过长整型的表达形式转化生成带点格式的互联网地址(例如:aaa.bbb.ccc.ddd )。
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 parameters" id="refsect1-function.long2ip-parameters">
|
||
<h3 class="title">参数</h3>
|
||
<p class="para">
|
||
<dl>
|
||
|
||
|
||
<dt>
|
||
<code class="parameter">proper_address</code></dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
合格的地址,长整型的表达形式。
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
</dl>
|
||
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 returnvalues" id="refsect1-function.long2ip-returnvalues">
|
||
<h3 class="title">返回值</h3>
|
||
<p class="para">
|
||
返回字符串的互联网 IP 地址。
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 changelog" id="refsect1-function.long2ip-changelog">
|
||
<h3 class="title">更新日志</h3>
|
||
<table class="doctable informaltable">
|
||
|
||
<thead>
|
||
<tr>
|
||
<th>版本</th>
|
||
<th>说明</th>
|
||
</tr>
|
||
|
||
</thead>
|
||
|
||
<tbody class="tbody">
|
||
<tr>
|
||
<td>7.1.0</td>
|
||
<td>
|
||
参数 <code class="parameter">proper_address</code> 的类型从 <span class="type"><a href="language.types.string.html" class="type string">string</a></span> 改成 <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">注释</h3>
|
||
<blockquote class="note"><p><strong class="note">Note</strong>:
|
||
<p class="para">
|
||
在 32 位架构中,从 <span class="type"><a href="language.types.string.html" class="type string">string</a></span> 转换 <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> 整型形式的 ip 地址将有可能导致错误的结果,因为结果数字超出了 <strong><code>PHP_INT_MAX</code></strong> 限制。
|
||
</p>
|
||
</p></blockquote>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 seealso" id="refsect1-function.long2ip-seealso">
|
||
<h3 class="title">参见</h3>
|
||
<p class="para">
|
||
<ul class="simplelist">
|
||
<li class="member"><span class="function"><a href="ip2long.html" class="function" rel="rdfs-seeAlso">ip2long()</a> - 将 IPV4 的字符串互联网协议转换成长整型数字</span></li>
|
||
</ul>
|
||
</p>
|
||
</div>
|
||
|
||
|
||
</div></div></div></body></html> |