简体中文
inet_pton() 函数将可读的 IP 地址转换为打包的 32 位 IPv4 或 128 位 IPv6 格式。
inet_pton()
将可读的 IP 地址转换为打包格式:
<?php $addr = inet_pton("127.0.1.1"); echo $addr; ?>