note 10581 added to is_int
| From: | Maxwell_Smart at ThePentagon dot com | Date: | Thu, 11 Jan 2001 15:43:18 +0000 |
| Subject: | note 10581 added to is_int | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9653@lists.php.net to get a copy of this message | ||
After a post I usually use
$Post_Var += 0;
That forces a variable to be a number. If there was a character, it now = 0. If it was a number
nothing changed.
http://www.php.net/manual/function.is-int.php