取得绝对值。
语法: mixed abs(mixed number);
返回值: 混合类型资料
函数种类: 数学运算
返回参数 number 的绝对值。若 number 是倍精确浮点数,则返回值也是倍浮点数;其它的类型则返回类型为整数。
PHP 首页 | PHP 导读 | PHP 函数库 | PHP 函数索引 | PHP 范例程序