[PHP] is_nan()

is_nan() (funzione PHP) verifica se una variabile non è un numero (not a number). Restituisce un valore booleano (false se è un numero).

tips&tricks

Sintassi

is_nan($var);
parametro descrizione
$var La variabile da processare

Esempi

$nan = acos(8);
echo is_nan($nan); // true (1)

Contenuti correlati

  • CSS
  • HTML
  • JavaScript
  • jQuery
  • PHP
  • SQL
  • WORDPRESS

Fonti esterne

funzioni php, php

Related Articles

0 Comment