Codex

Function Reference/absint

Contents

Description

Converts value to nonnegative integer.

Synonym of abs ( intval ( $foo ) ).

Usage

<?php absint$maybeint ); ?>

Parameters

$maybeint
(mixed) (required) Data you wish to have convered to an nonnegative integer
Default: None

Return Values

(int) 
An nonnegative integer

Change Log

Since: 2.5

Source File

absint() is located in wp-includes/functions.php