note 58713 deleted from function.is-int by nlopess
| From: | nlopess@php.net | Date: | Sun, 13 Nov 2005 16:17:52 +0000 |
| Subject: | note 58713 deleted from function.is-int by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98512@lists.php.net to get a copy of this message | ||
Note Submitter: bg at ms dot com
----
In trying to determine if URL contains a valid (i.e., integer) id, I've had good luck with
$id = $_GET['id'];
if ( $id != round($id,0) ) { echo 'err: non-int id'; }