absint

函数


absint ( $maybeint )
参数
  • (mixed)
    $maybeint
    Data you wish to have converted to a non-negative integer.
    Required:
返回值
  • (int) A non-negative integer.
定义位置
  • wp-includes/functions.php
    , line 5335
引入
2.5.0
弃用

Converts a value to non-negative integer.

function absint( $maybeint ) {
	return abs( (int) $maybeint );
}