Robert Sedlacek wrote:
On Thu, 23 Oct 2003 11:59:44 -0400, Cesar Cordovez wrote:
So, how can I check if what ever the user writes is an integer or not, knowing that he will write it in a string field.
Idea:
if(($var + 0) == $var AND is_integer($var + 0)) echo "number";
Robert
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php