note 14971 added to function.is-int.php

From: Date: Wed, 22 Aug 2001 21:58:40 +0000
Subject: note 14971 added to function.is-int.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-17004@lists.php.net to get a copy of this message
This seems to work just fine for HTTP variables (params passed by GET/POST, which are always strings): if( is_int( $id * 1 ) ) echo "Valid"; else echo "Invalid;"; -Nick (http://www.nickbouton.com/) http://www.php.net/manual/en/function.is-int.php

« previous php.notes (#17004) next »