absint( mixed $maybeint )

Convert a value to non-negative integer.


Parameters

$maybeint

(Required) Data you wish to have converted to a non-negative integer.


Return

(int) A non-negative integer.


Source

File: wp-includes/functions.php

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


Changelog

Changelog
Version Description
WP-2.5.0 Introduced.