note 15373 deleted from function.is-int by zak

From: Date: Fri, 07 Sep 2001 00:55:21 +0000
Subject: note 15373 deleted from function.is-int by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-17751@lists.php.net to get a copy of this message
All the query strings are strings, is better to use regexp to identify when values are numbers: <?php if (!ereg("^([0-9])*([0-9])$",$id)) { echo "no number"; } else { echo "number"; } ?>

« previous php.notes (#17751) next »