Check if variable is NaN PHP


Description
Check if variable is Not a Number


$number = is_numeric(123); //true
$number = is_numeric("123"); //true
$number = is_numeric("hello") //false

$not_a_number = !is_numeric(123); //false
$not_a_number = !is_numeric("hello") //true

SEE ALSO