note 21864 rejected from function.is-numeric by torben

From: Date: Wed, 29 May 2002 19:30:13 +0000
Subject: note 21864 rejected from function.is-numeric by torben
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-31165@lists.php.net to get a copy of this message
I am using "is_numeric" to check a form variable to make sure the user has entered numbers. if (!is_numeric($isbn)){ $err .= print "ISBN must be numbers!"; } When ISBN is a non-numeric value, $err correctly contains "ISBN must be numbers" but is followed by a 1. Does anyone have an idea why this one is showing up? or what I can do to prevent it from printing? Thanks- Laura

« previous php.notes (#31165) next »