absint( mixed $maybeint )

Convert a value to non-negative integer.

Parameters Parameters


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

Top ↑

Return Return

(int) A non-negative integer.

Top ↑

Source Source

File: wp-includes/functions.php

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

Top ↑

Changelog Changelog

Version Description
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

You must log in before being able to contribute a note or feedback.