absint

Definition:
function absint( $maybeint ) {}

Converts value to nonnegative integer.

Parameters

  • mixed $maybeint: Data you wish to have converted to a nonnegative integer

Return values

returns:An nonnegative integer

Source code

function absint( $maybeint ) {

	return abs( intval( $maybeint ) );

}

199

No comments yet... Be the first to leave a reply!

Leave a comment