读书人

不明白php中的inet_pton的返回值是什么

发布时间: 2014-06-05 16:29:39 作者: rapoo

不明白php中的inet_pton的返回值是什么?
我看到文档说inet_pton的功能是:
Converts a human readable IP address to its packed in_addr representation
返回值是:
Returns the in_addr representation of the given address。
packed in_addr representation是什么?
我怎么去除返回值或显示返回值呢?
为什么我echo,print_r出来的内容全是乱码呢。
var_dump出来的是
string(16) "  @"
string(16) " 

读书人网 >PHP

热点推荐