PHP

【PHP】IPV6转IPV4

小破孩
2022-06-23 / 0 评论 / 277 阅读 / 正在检测是否收录...
    public function ipv6To4($ipv6){
        return hexdec(substr($ipv6, 0, 2)). "." . hexdec(substr($ipv6, 2, 2)). "." . hexdec(substr($ipv6, 5, 2)). "." . hexdec(substr($ipv6, 7, 2));
    }
0

评论 (0)

取消