shortest possible check: field is set, integer or 0

From: Date: Wed, 30 Nov 2005 23:10:01 +0000
Subject: shortest possible check: field is set, integer or 0
Groups: php.general 
Request: Send a blank email to php-general+get-226669@lists.php.net to get a copy of this message
What is the shortest possible check to ensure that a field coming from a form as a text type input is either a positive integer or 0, but that also accepts/converts 1.0 or 5.00 as input? c

« previous php.general (#226669) next »