Uma área de pesquisa sobre o WordPress para devs e autores do tema



absint ›

Desde2.5.0
Obsoleton/a
absint ( $maybeint )
Parâmetros:
  • (mixed) $maybeint Data you wish to have converted to a non-negative integer.
    Required: Yes
Retorna:
  • (int) A non-negative integer.
Definido em:
Codex:

Convert a value to non-negative integer.



Fonte

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