IP地址与网络服务相关函数
//把IP点分格式的字符串还原为IPv4地址
int ip2long(string ip_address)
//将IPv4地址格式转换回点分十进制字符串
string long2ip(int proper_address)
//获取环境变量varname,成功返回变量值,失败返回false
string getenv(string varname)
//用于设置系统环境参数
void putenv(string setting)
//获取当前PHP脚本执行者的用户名
string get_current_user(void)
//调用由function_name指定的用户自定义函数
string get_cfg_var(string function_name[,mixed parrameter[,mixed...]])
//返回与service关联的端口号(protocol),仅限TCP或UDP
int getservbyname(string service,string protocol)
//返回与port关联的服务名称(protocol),仅限TCP或UDP
string getservbyport(int port,string protocol)
//计算数值的绝对值
mixed abs(mixed number)
//计算平方根
float sqrt(float arg)
//计算自然对数底e的指数次幂
float exp(float arg)
//返回圆周率π的值
double pi(void)
//对数值进行四舍五入处理
double round(double val)
//计算大于指定数的最小整数
int ceil(float number)
//计算小于指定数的最大整数
int floor(float number)
//获取多个参数中的最大值
mixed max(mixed arg1,mixed arg2...mixed argn)
//获取多个参数中的最小值
mixed min(mixed arg1,mixed arg2...mixed argn)
//生成随机整数
int rand([int min],[int max])
//在不同进制间转换数字字符串
string base_convert(string number,int frombase,int tobase)
//格式化数字字符串以增强可读性
string number_format(float number,int[decimals],string[decpoint],string[thounsands_sep])