note 15964 added to function.is-float

From: Date: Wed, 10 Oct 2001 15:47:29 +0000
Subject: note 15964 added to function.is-float
Groups: php.notes 
Request: Send a blank email to php-notes+get-18780@lists.php.net to get a copy of this message
This function seems to note the current state of the variable - it doesn't auto-type the input! For example: $input='5'; if (is_float($input)) echo 'real'; else echo 'not real'; will return 'not real'. But 5 is a valid "real" number that I can dump into a database! -- http://www.php.net/manual/en/function.is-float.php http://master.php.net/manage/user-notes.php?action=edit+15964 http://master.php.net/manage/user-notes.php?action=delete+15964 http://master.php.net/manage/user-notes.php?action=reject+15964

« previous php.notes (#18780) next »