absint( mixed $maybeint )
Converts 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
Version | Description |
---|---|
2.5.0 | Introduced. |