absint()

最后更新于:2021-11-25 19:06:42

absint( mixed$maybeint)

Convert 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.

源文件

文件: gc-includes/functions.php

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