a number can only be one of finite, infinite and NaN. You don't need to check both is_infinite() and is_nan() to see if a number is invalid or out of range.<?php$...
(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) is_infinite— Verifica se un dato valore è infinitoDescrizione ¶ is_infinite(float $val): bool Restituisce true se valè i...