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



absint › WordPress Function

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:

Converts a value to non-negative integer.



Fonte

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