format_ip(ip, type)

参数:

ip, IP地址

type, 格式划类型

作用:

将IP地址格式化成指定的格式。

示例:

{$=format_ip("127.0.0.1", 2)}
返回值:127.0.*.*