wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_is_integer › WordPress Function

Da5.5.0
Deprecaton/a
rest_is_integer ( $maybe_integer )
Parametri:
  • (mixed) $maybe_integer The value being evaluated.
    Richiesto:
Ritorna:
  • (bool) True if an integer, otherwise false.
Definito a:
Codex:

Determines if a given value is integer-like.



Sorgenti

function rest_is_integer( $maybe_integer ) {
	return is_numeric( $maybe_integer ) && round( (float) $maybe_integer ) === (float) $maybe_integer;
}