Convert a value to non-negative integer.

Signature

absint( $maybeint )
maybeint
 (mixed) Data you wish to have converted to a non-negative integer.

Return

(int) A non-negative integer.

Source

function absint( $maybeint ) {
	return abs( intval( $maybeint ) );
}
WP Trac GitHub

Link here