A WordPress-centric search engine for devs and theme authors



absint ›

Since2.5.0
Deprecatedn/a
absint ( $maybeint )
Parameters:
  • (mixed) $maybeint Data you wish to have converted to a non-negative integer.
    Required: Yes
Returns:
  • (int) A non-negative integer.
Defined at:
Codex:

Convert a value to non-negative integer.



Source

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