absint( mixed $maybeint )

Convert a value to non-negative integer.


Description Description


Parameters Parameters

$maybeint

(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( intval( $maybeint ) );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Top ↑

More Information More Information

Synonym of abs( intval( $foo ) );



Top ↑

User Contributed Notes User Contributed Notes

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