note 11037 deleted from function.is-integer by philip

From: Date: Tue, 28 Aug 2001 21:17:40 +0000
Subject: note 11037 deleted from function.is-integer by philip
Groups: php.notes 
Request: Send a blank email to php-notes+get-17262@lists.php.net to get a copy of this message
Esta funcao verifica se uma string representa um valor inteiro: function eh_inteiro($string) { $len = strlen($string); for ( $i=0; $i< $len; $i++ ) if ( ($string[$i] > '9') || ($string[$i] < '0') ) return (false); return(true); }

« previous php.notes (#17262) next »