函数原型
absint( mixed $maybeint ): int
函数描述
Converts a value to non-negative integer.
是否弃用
未弃用
函数参数
-
$maybeint
mixed
Required - Data you wish to have converted to a non-negative integer.
函数返回值
int A non-negative integer.
函数位置
File: wp-includes/functions.php.
函数源码
function absint( $maybeint ) {
return abs( (int) $maybeint );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |

