note 14793 added to function.is-integer.php

From: Date: Wed, 15 Aug 2001 04:39:14 +0000
Subject: note 14793 added to function.is-integer.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16741@lists.php.net to get a copy of this message
is_long() returns the *type* of the variable, not whether that variable contains an integer value. To determine if a string holds an integer value do: is_numeric($x) && ((integer)$var == $var) http://www.php.net/manual/en/function.is-integer.php

« previous php.notes (#16741) next »